Assemblies
Read, edit, and retrieve Civil 3D assemblies and their subassemblies.
Civil3d Assembly
Civil3d › Assemblies · Introduced v1.1.19
Extracts information from a Civil 3D assembly and optionally edits it in place. Leave the optional inputs empty to simply read an assembly's name, description, type, code, style, location, subassemblies and combined geometry. Supply any of the optional inputs to update the corresponding property on the assembly in the drawing.
Inputs
AssemblyCivil3d AssemblyA Civil3d Assembly
NameTextoptionalThe name of the assembly. When set this will update the name of the assembly.
DescriptionTextoptionalThe description of the assembly. When set this will update the description of the assembly.
TypeIntegeroptionalThe type of the assembly (1=UndividedCrownedRoad, 2=UndividedPlanarRoad, 3=DividedCrownedRoad, 4=DividedPlanarRoad, 5=Other, 6=Railway). When set this will update the type of the assembly.
CodeTextoptionalThe code name of the assembly. When set this will update the code of the assembly.
The style to apply to this assembly. When set this will update the style of the assembly.
LocationPointoptionalThe origin location of the assembly. When set this will update the location of the assembly.
Outputs
The Id of the Assembly.
NameTextThe name of the assembly.
DescriptionTextThe description of the assembly.
TypeTextThe type of the assembly.
CodeTextThe code name of the assembly.
StyleNamed IdThe style applied to this assembly.
SubassembliesCivil3d Subassembly PropertiesThe subassemblies in the Assembly.
LocationPointThe origin location of the Assembly.
GeometryCurveThe combined geometry from all subassemblies as curves.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The assembly could not be matched to an open drawing. Make sure the source drawing is still open in AutoCAD. |
| Error | Failed to read Assembly | The referenced object could not be read as an assembly. Confirm the input still points to a valid assembly. |
See also
Get Civil3d Assemblies, Civil3d Subassembly
Civil3d Subassembly
Civil3d › Assemblies · Introduced v1.1.19
Reads the individual values of a subassembly taken from the Subassemblies output of the Civil3d Assembly component: name, description, side, origin and geometry. The Name, Description and Side inputs are optional; supply them to edit the subassembly in the drawing, otherwise the existing values are passed straight through.
Inputs
SubassemblyCivil3d Subassembly PropertiesA Subassembly from a Civil3d Assembly
NameTextoptionalThe name of the subassembly. When set this will update the name of the subassembly.
DescriptionTextoptionalThe description of the subassembly. When set this will update the description of the subassembly.
SideIntegeroptionalThe side of the subassembly (0=None, 1=Left, 2=Right). When set this will update the side of the subassembly.
Outputs
NameTextThe name of the subassembly.
DescriptionTextThe description of the subassembly.
SideTextThe side of the subassembly (Left, Right, or None).
OriginPointThe origin point of the subassembly.
GeometryCurveThe geometry of the subassembly as curves.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The subassembly could not be matched to an open drawing. Make sure the source drawing is still open in AutoCAD. |
See also
Civil3d Assembly, Civil3d Side
Get Civil3d Assemblies
Civil3d › Assemblies · Introduced v1.1.19
Gets all assemblies from a Civil 3D document. Leave the Document input empty to use the active drawing, or supply a document to target a specific one. Feed the result into the Civil3d Assembly component to read or edit each assembly.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
Outputs
AssembliesCivil3d AssemblyAll Assemblies in the current document.
Menu & behaviour
- Recomputes automatically when relevant objects are added, modified, or erased in the AutoCAD/Civil document. (Specifically, when assemblies are added to or removed from the document.)
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No drawing is open and none was supplied. Open a drawing in AutoCAD or connect a Document. |
| Warning | No assemblies found in the document | The document contains no assemblies. Create or import assemblies in Civil 3D. |