Macro Language Reference > Macros > Application > tdrop
  
tdrop
Description
The wdrop and tdrop macros are internal macros generated by the Windows interface when you drag and drop files onto PTC ALD documents.
 
Example 16. Perform an automated drag and drop procedure via a macro
Execute the following syntax in the macro bar in an open document:
tp:tdrop ^[doc.window.id],0,10,10,1,"{@}stuk.3ad"^
The tp syntax sets PTC ALD to Page Mode. For more information see the macro tp.
The next part of the syntax mimics the action of a dragging the stuk.3ad file, a text file from the PTC ALD system directory, onto the current work area at a position of 10px across and 10px down.
 
The same results can be achieved by opening your PTC ALDwin directory, selecting this file and dragging and dropping it onto the window.
When you have executed the above syntax, a menu will appear. Click Apply to selected frame(s) to complete the command.
Syntax
tdrop window:n box:n x pos, y pos:n window:n button:n filename:s*
window
The internal window number (as for wtp etc).
box
The window area:
0
Work area
1
Top bar (no longer shown by default)
2
Left bar
3
Edit bar
x pos, y pos
The drop position relative to the box, in pixels
button
The mouse button to be used for the drag/drop
filename
A list of filenames to drop at that position
Additional Information
It is possible to use these macros from scripts if you know the window number (available with getvar 01504 or ^[doc.window.id]).
Related Links