Gets the objectId collection of all Alignment objects in the drawing.
Namespace: Autodesk.Civil.ApplicationServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public ObjectIdCollection GetAlignmentIds() |
Visual Basic |
---|
Public Function GetAlignmentIds As ObjectIdCollection |
Visual C++ |
---|
public: ObjectIdCollection^ GetAlignmentIds() |
Remarks
The collection returned by this method includes both site and siteless alignments.
Examples

1// get first profile of first alignment in document 2ObjectId alignID = doc.GetAlignmentIds()[0]; 3Alignment oAlignment = ts.GetObject(alignID, OpenMode.ForRead) as Alignment;