AttachedDrawing.SaveQueriedObjects method

AutoCAD Map 3D ActiveX

AttachedDrawing.SaveQueriedObjects method

Gets the objects queried from an attached drawing and saves them to memory.

SaveQueriedObjects( ) As Boolean

Saves images of objects from a query of the attached drawing.

Note Because this method saves only to memory and not to disk, use the AttachedDrawing.Save method afterward to make the changes persistent.

The following example shows how to save queried objects.

Dim amobj as AcadMap

Dim pobj As AutoCADMap.Project

Dim dsobj as DrawingSet

Dim adobj as AttachedDrawing

Dim retval as Boolean

Set amobj = acadApp.GetInterfaceObject("AutoCADMap.Application")

Set pobj = amobj.Projects(ThisDrawing)

Set dsobj = pobj.DrawingSet

Set adobj = dsobj.Item(5)

retval = adobj.SaveQueriedObjects

If retval = True Then

 MsgBox "Objects saved to memory."

Else

 MsgBox "Objects not saved to memory."

End If