Macro Language Reference > Macros > Application > tpaste
  
tpaste
Description
Pastes the contents of a clipboard or other file into the current document. PTC ALD keeps three clipboards, one each for frame, text and graphics. Clipboard files are updated whenever you use the tcut and tcopy macros.
* 
A clipboard file can only hold one clipped item at a time.
 
Example 19. Paste an PTC ALD format text file into a text stream
The macro below pastes a file which has already been converted into PTC ALD format directly into the text stream. This is a quick alternative to loading a text file into a frame, selecting it and then pasting it into another text stream:
tpaste "c:/3d/test.3t"
Syntax
tpaste filename:s?
filename
The name of the file in PTC ALD format (e.g. .3p, .3t, or .3o) that you want to paste into a document.
Additional Information
A clipboard can be pasted as many times as you wish, until it is overwritten when you use another tcut or tcopy macro.
The mode in which PTC ALD is set will determine what items can be pasted using the tpaste macro. Items are from their respective clipboards as follows:
Text Mode: the contents of the text clipboard clip.3t are pasted into the current stream at the cursor position
Page Mode: the contents of the frame clipboard clip.3p are pasted onto the current page or over/underlay
Graphics Mode: the contents of the graphics clipboard clip.3o are pasted into the current frame on top of any existing graphics
On Windows systems, there is only one global clipboard which applies to Page, Text and Graphic modes. This clipboard is context sensitive and responds to cut/copy/paste operations in a sensible way.