AttachedDrawing.RemoveAllFromSSet method

AutoCAD Map 3D ActiveX

AttachedDrawing.RemoveAllFromSSet method

Removes from a SaveSet all objects queried from a drawing.

RemoveAllFromSSet( ) As Boolean

Returns True on success.

The following example removes queried objects from a save set.

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.RemoveAllFromSSet

If retval = True Then

 MsgBox "Queried objects removed from save set."

Else

 MsgBox "Queried objects not removed from save set."

End If