NestedDrawings.Item method

AutoCAD Map 3D ActiveX

NestedDrawings.Item method

Gets an object reference to a drawing that is part of a NestedDrawings collection.

Item(DwgNameOrIndex As Variant) As AttachedDrawing

Returns a reference to a specified AttachedDrawing object that belongs to NestedDrawings.

DwgNameOrIndex

Contains the full name of the drawing file (alias + path + filename) or the index position, starting at 0, of the AttachedDrawing object within the NestedDrawings collection.

The following example gets a nested drawing.

Dim amobj as AcadMap

Dim pobj As AutoCADMap.Project

Dim dsobj as DrawingSet

Dim adobj as AttachedDrawing

Dim ndobj as NestedDrawing

Dim objnum as Long

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

Set pobj = amobj.Projects(ThisDrawing)

Set dsobj = pobj.DrawingSet

Set ndobj = dsobj.NestedDrawings

Set adobj = ndobj.Item(5)