Gets the collection of AppliedAssembly objects associated with this BaselineRegion.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Examples
CopyC#
1
2foreach (AppliedAssembly oAppliedAssembly in oBaselineRegion.AppliedAssemblies)
3{
4 ed.WriteMessage("Applied Assembly, num shapes: {0}, num links: {1}, num points: {2}\n",
5 oAppliedAssembly.Shapes.Count, oAppliedAssembly.Links.Count, oAppliedAssembly.Points.Count);
6
7
8 AppliedSubassemblyCollection oASC = oAppliedAssembly.GetAppliedSubassemblies();
9 foreach (AppliedSubassembly oAppliedSubassembly in oASC)
10 {
11 ed.WriteMessage("Applied subassembly: Station to baseline: {0}, Offset to baseline: {1}, Elevation to baseline: {2}\n",
12 oAppliedSubassembly.OriginStationOffsetElevationToBaseline.X,
13 oAppliedSubassembly.OriginStationOffsetElevationToBaseline.Y,
14 oAppliedSubassembly.OriginStationOffsetElevationToBaseline.Z);
15
16
17 ObjectId oID = oAppliedSubassembly.SubassemblyId;
18 Subassembly oSubassembly = ts.GetObject(oID, OpenMode.ForRead) as Subassembly;
19 ed.WriteMessage("Subassembly name: {0}\n", oSubassembly.Name);
20
21 }
22
23}
See Also