2.12 Copy and paste
With copy and paste you can generally
- Choose Cut in the Edit menu or press command-x to move selected data
to the clipboard
- Choose Copy in the Edit menu or press command-c to copy selected data
to the clipboard
- Choose Paste in the Edit menu or press command-v to copy data from
the clipboard
- Choose Clear in the Edit menu or press the delete or backspace
key to remove selected data
- Choose Select All in the Edit menu or press the command-a to select
all data.
In 4D CAD this applies to selected objects in drawings and to selected characters in a measure
pane edit box. In particular, you can
- Hold down the option key while pasting objects, in order to copy the objects to the
current layer (normally objects are pasted to their original layers).
Special considerations
- You can copy and paste objects in a drawing and between drawings, but not between
different applications
- Copying and pasting raster images, Macintosh pictures and Windows WMF and EMF drawings,
has not been implemented (yet).
- Paste may zoom in automatically, so that it is clear that objects have been pasted
- Paste may change the drawing bounds if needed
- Paste automatically scales objects pasted to an area with a different unit.
- Pasting objects also pastes elements needed by those objects:
layers, inserted blocks, linetypes, hatches, markings.
To prevent unnecessary copying, elements in the drawing are compared with elements in the
clipboard.
Layers are identified by their name and unmasked keys.
Other elements are identified by their content and unmasked keys (see Key masks).
Programming
Installing an event procedure gives the programmer full control over copy and paste,
see Copy and paste control.
Methods
CADGetOnEvent, CADSetOnEvent,
CADCommand,
CADGotoPage,
CADGetKeyMask, CADSetKeyMask,
CADMoveTo, CADCopyTo, CADCopyObjTo,
CADCopyBlocks, CADCompareBlock, CADCompareObj.