Macro Language Reference > Macros > Application > tcopy
  
tcopy
Description
Copies selected frames, text or graphics into the appropriate clipboard file, without removing them from your document. When in Page Mode the selected frame, frames or groups of frames are copied to the frame clipboard (clip.3p). By default only the frames' attributes are copied, not their contents: if you want to copy their contents as well you should use the extended switch listed below
 
Example 14. Copy an object graphic to a specified file
The macro below copies the object graphic test.3o to the file c:/3d. This provides you with a simple way of maintaining several object graphics clipboards, which can be accessed using the tpaste macro.
tcopy "c:/3d/test.3o"
Syntax
tcopy filename:s? extended:o?
[no parameter]
The mode in which PTC ALD is set will determine what items can be copied using the tcopy macro without parameters. Items are copied to their respective clipboards as follows:
Text Mode: selected text is copied to the text clipboard clip.3t
Page Mode: selected frame, frames or groups of frames are copied to the frame clipboard clip.3p
Graphics Mode: selected graphics are copied to the graphics clipboard clip.3o
filename
The name of a file in PTC ALD format (e.g. .3p, .3t, or .3o) to which you want to copy your selection.
extended
0
When copying frames only the frame attributes are copied (default).
1
When copying frames the frame attributes and any dependant contents are copied. All tags directly attached to the frame are recursively searched to find any other tags that will be required to reproduce the frame and its contents in another document.