Drawing Sets Detail

AutoCAD Map 3D ObjectARX

 
Drawing Sets Detail
 
 
 

When you save a project, AutoCAD Map 3D automatically saves references to all the project's drawing set files in the project's DWG file.

You attach drawings to and detach drawings from a drawing set.

Attached Drawings

A drawing set is a tree of attached drawings. Any of the attached drawings can have other drawings attached to them. The drawings that are not directly attached to the root of the drawing set (at level 0 of the tree) are called nested drawings.

You can use AcMapDrawingSet functions to edit and manipulate only drawings that are directly attached to the drawing set at the root level (level 0) of the drawing set. To access and edit drawings at deeper levels, use the functions of the AcMapAttachedDrawing class.

A single drawing can be directly attached to the drawing set only once. However, a single drawing can have multiple entries in the drawing set at nested levels 1 and deeper.

You can designate an attached drawing as active or inactive. When a query is executed in the project, only the active drawings are considered. When you work with object data in a project, open drawings instead of attaching them.

Drawing Set Reactors

You can attach a reactor to a drawing set. A drawing set reactor notifies an application about drawing set-related events, such as attachment, detachment, activation, or deactivation. Whenever the drawing set is modified, an appropriate function of the reactor object is called before termination of the zero level Map transaction.

Saving Attached Drawings

If, after modifying an attached drawing, you want to save the changes in the source drawing, you must specify the set of drawing objects to be saved in a save set.

Saving an attached drawing with its drawing objects is typically a three-part procedure:

  1. Lock the drawing for writing using AcMapAttachedDrawing::LockForWrite.
  2. Clone the drawing objects that you wish to save using one of the AcMapAttachedDrawing class's functions.
  3. Save the changes back to the drawing's source file using AcMapAttachedDrawing::Save.

For More Information

For more information about drawing sets, see the UI documentation, Autodesk Map Help.