Assemblies

Read, edit, and retrieve Civil 3D assemblies and their subassemblies.


CVL-AsmAssemblies

Civil3d Assembly

Civil3d Assembly icon

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

A Civil3d Assembly

NameTextoptional

The name of the assembly. When set this will update the name of the assembly.

DescriptionTextoptional

The description of the assembly. When set this will update the description of the assembly.

TypeIntegeroptional

The 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.

CodeTextoptional

The code name of the assembly. When set this will update the code of the assembly.

StyleNamed Idoptional

The style to apply to this assembly. When set this will update the style of the assembly.

LocationPointoptional

The origin location of the assembly. When set this will update the location of the assembly.

Outputs

The Id of the Assembly.

NameText

The name of the assembly.

DescriptionText

The description of the assembly.

TypeText

The type of the assembly.

CodeText

The code name of the assembly.

The style applied to this assembly.

SubassembliesCivil3d Subassembly Properties

The subassemblies in the Assembly.

LocationPoint

The origin location of the Assembly.

GeometryCurve

The combined geometry from all subassemblies as curves.

Exceptions

LevelMessageCause & fix
ErrorNo document availableThe assembly could not be matched to an open drawing. Make sure the source drawing is still open in AutoCAD.
ErrorFailed to read AssemblyThe 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



CVL-SubAssemblies

Civil3d Subassembly

Civil3d Subassembly icon

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 Properties

A Subassembly from a Civil3d Assembly

NameTextoptional

The name of the subassembly. When set this will update the name of the subassembly.

DescriptionTextoptional

The description of the subassembly. When set this will update the description of the subassembly.

SideIntegeroptional

The side of the subassembly (0=None, 1=Left, 2=Right). When set this will update the side of the subassembly.

Outputs

NameText

The name of the subassembly.

DescriptionText

The description of the subassembly.

SideText

The side of the subassembly (Left, Right, or None).

OriginPoint

The origin point of the subassembly.

GeometryCurve

The geometry of the subassembly as curves.

Exceptions

LevelMessageCause & fix
ErrorNo document availableThe 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



CVL-GetAsmsAssemblies

Get Civil3d Assemblies

Get Civil3d Assemblies icon

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

DocumentAutoCAD Documentoptional

An AutoCAD Document. If not provided, the active document will be used.

Outputs

All 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

LevelMessageCause & fix
ErrorNo active AutoCAD document availableNo drawing is open and none was supplied. Open a drawing in AutoCAD or connect a Document.
WarningNo assemblies found in the documentThe document contains no assemblies. Create or import assemblies in Civil 3D.

See also

Civil3d Assembly