Copy to XRef
|View HTML Version||Copy2XRefV1-2.html|
This program enables the user to copy a selection of objects to a selected xref, without opening the xref source drawing.
Upon calling the program with c2x at the command-line, the user is prompted to make a selection of objects to copy. Following a valid response, the user is then prompted to select an External Reference (xref) to which the objects are to be copied.
The program will then proceed to copy the selected objects to the source drawing of the selected xref using a deep-clone method, coupled with an ObjectDBX interface should the xref source drawing be unopened in the current drawing session.
Upon copying the selection, the xref source drawing is saved and the xref is reloaded in the current drawing; the selected objects are then deleted from the current drawing.
The program will account for the position, scale, rotation & orientation of the xref relative to the selection of objects and will perform successfully under all UCS & View settings.
Please Note: the act of copying objects to the xref source drawing involves saving the external drawing remotely - this action cannot be undone within the current drawing and changes to the external drawing must be reset manually.
Note also that when saving drawings through ObjectDBX, drawing file thumbnails will be lost until the next manual save.
Instructions for Running
Please refer to How to Run an AutoLISP Program.