Item Method
Gets the member object at a given index in a collection.
Signature
RetVal = object.Item(Index)
object
All Collections The object or objects this property applies to.
Index
Variant; input-only
The index location in the collection for the member item to query.
The index must be either an integer or a string. If an integer, the
index must be between 0 and N-1, where N is the number of objects in
the collection or selection set.
RetVal
Object;
The object at the given index location in the collection or selection set.
Remarks
This method supports string based iteration. For example, you could reference the document named "siteplan.dwg" through the following statement:
Set mydoc = Docs.Item("siteplan.dwg")
In general, the index can be passed in as any integral type: integer, long, double, etc. In addition, the following collections support a case-sensitive string type as an index (typically the name of the collection member):
Boundaries
BreakLines
ContourItems
DEMFiles
DescriptionKeyFile
DescriptionKeyFiles
Drawings
PointGroupNames
PointFiles
Projects
Prototypes
WaterSheds
Also, the following collections support a case-insensitive string type as an index (typically the name of the collection member):
Alignments
Parcels
PointGroups
Surfaces
If a station equation is deleted, then the indices for the StationEquations collection will change.