Gets the Alignment entities collection for the Alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public AlignmentEntityCollection Entities { get; }
Visual Basic
Public ReadOnly Property Entities As AlignmentEntityCollection Get
Visual C++
public: property AlignmentEntityCollection^ Entities { AlignmentEntityCollection^ get (); }
Examples

1int i = 0; 2// iterate through each Entity and check its type 3foreach (AlignmentEntity myAe in align.Entities) 4{ 5 i++; 6 String msg = ""; 7 8 switch (myAe.EntityType) 9 { 10 case AlignmentEntityType.Arc: 11 AlignmentArc myArc = myAe as AlignmentArc; 12 msg = String.Format("Entity{0} is an Arc, length: {1}\n", i, myArc.Length); 13 break; 14 15 case AlignmentEntityType.Spiral: 16 AlignmentSpiral mySpiral = myAe as AlignmentSpiral; 17 msg = String.Format("Entity{0} is a Spiral, length: {1}\n", i, mySpiral.Length); 18 break; 19 // we could detect other entity types as well, such as 20 // Tangent, SpiralCurve, SpiralSpiral, etc. 21 default: 22 msg = String.Format("Entity{0} is not a spiral or arc.\n", i); 23 break; 24 25 } 26 // write out the Entity information 27 ed.WriteMessage(msg); 28}