Gets the Alignment entities collection for the Alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Examples
CopyC#
1int i = 0;
2
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
20
21 default:
22 msg = String.Format("Entity{0} is not a spiral or arc.\n", i);
23 break;
24
25 }
26
27 ed.WriteMessage(msg);
28}
See Also