Gets the collection of AppliedAssembly objects associated with this BaselineRegion.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public AppliedAssemblyCollection AppliedAssemblies { get; }
Visual Basic
Public ReadOnly Property AppliedAssemblies As AppliedAssemblyCollection
	Get
Visual C++
public:
property AppliedAssemblyCollection^ AppliedAssemblies {
	AppliedAssemblyCollection^ get ();
}

Examples

CopyC#
 1// List the applied assemblies in the baseline region
 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    // Iterate through each subassembly and print out some information
 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        // Get information about the subassembly template:
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