Alignments
Components for reading, inspecting, and creating Civil 3D alignments together with their geometry, properties, and design information.
Civil3d Alignment
Civil3d › Alignments · Introduced v1.1.19
Extracts information from a Civil 3D Alignment. Feed it an alignment and it breaks out the alignment's identity, its grouped properties, its individual geometry entities, the centerline as a Rhino curve, and any associated labels. Use it as the starting point for inspecting or further processing an existing alignment.
Inputs
AlignmentCivil3d AlignmentA Civil3d Alignment
Outputs
The Id of the Alignment.
PropertiesCivil3d Alignment PropertiesAlignment properties (use Alignment Properties component to extract values).
EntitiesCivil3d Alignment EntityThe individual entities (Lines, Arcs, Spirals) of the Alignment.
CurveCurveThe alignment centerline as a Rhino curve.
Label GroupsCivil3d Alignment Label GroupAuto-generated label groups from the Alignment.
LabelsCivil3d Feature LabelIndividual labels from the Alignment.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The drawing that owns the alignment could not be found. Make sure the source document is open. |
| Error | Failed to read Alignment | The alignment could not be read from the drawing. Confirm the input still references a valid alignment. |
See also
Civil3d Alignment Properties, Civil3d Alignment Entity, Create Civil3d Alignment, Get Civil3d Alignments
Civil3d Alignment Entity
Civil3d › Alignments · Introduced v1.1.19
Extracts individual values from a Civil 3D Alignment Entity. An alignment is made up of a sequence of entities (lines, arcs, spirals); this node reports a single entity's type, its station range, length, position index, geometry, and the sub-entities that compose it. Use it after the Civil3d Alignment node to inspect each piece of an alignment in turn.
Inputs
EntityCivil3d Alignment EntityAn alignment entity from a Civil3d Alignment
Outputs
TypeTextThe type of entity (Line, Arc, Spiral, etc.).
Start StationNumberThe starting station of this entity along the alignment.
End StationNumberThe ending station of this entity along the alignment.
LengthNumberThe length of this entity.
IndexIntegerThe index of this entity in the alignment.
CurveCurveThe entity geometry as a Rhino curve.
Sub-EntitiesCivil3d Alignment Sub-EntityThe sub-entities that make up this alignment entity.
See also
Civil3d Alignment, Civil3d Alignment Sub-Entity
Civil3d Alignment Properties
Civil3d › Alignments · Introduced v1.1.19
Extracts individual values from Civil 3D Alignment Properties, including name, description, station range, length, type, and links to the site, style, and design check set. It can also write changes back: supplying a new Name or Description updates the alignment in the drawing. The richer property groups (reference station, design speeds, CANT, and connected/offset/rail info) are passed out for the dedicated Info nodes to unpack.
Inputs
PropertiesCivil3d Alignment PropertiesAlignment properties from a Civil3d Alignment
NameTextoptionalThe name of the alignment. When set this will update the name of the alignment.
DescriptionTextoptionalThe description of the alignment. When set this will update the description of the alignment
Outputs
NameTextThe name of the alignment.
DescriptionTextThe description of the alignment.
Start StationNumberThe starting station of the alignment.
End StationNumberThe ending station of the alignment.
LengthNumberThe total length of the alignment.
Alignment TypeTextThe type of alignment (Centerline, Offset, CurbReturn, etc.).
SiteNamed IdThe site containing this alignment as a NamedId.
StyleNamed IdThe style applied to this alignment as a NamedId.
Design Check SetNamed IdThe design check set applied to this alignment as a NamedId.
Reference StationCivil3d Reference StationThe reference station information.
Design SpeedsCivil3d Design SpeedsThe design speed information.
CANT InfoCivil3d CANT InfoThe CANT (superelevation) information.
Connected Alignment InfoCivil3d Connected Alignment InfoThe connected alignment information.
Offset Alignment InfoCivil3d Offset Alignment InfoThe offset alignment information.
Rail Alignment InfoCivil3d Rail Alignment InfoThe rail alignment information.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The drawing that owns the alignment could not be found. Make sure the source document is open. |
See also
Civil3d Alignment, Civil3d Reference Station, Civil3d Design Speeds Info, Civil3d CANT Info, Civil3d Connected Alignment Info, Civil3d Offset Alignment Info, Civil3d Rail Alignment Info
Civil3d Alignment Sub-Entity
Civil3d › Alignments · Introduced v1.1.19
Extracts individual values from a Civil 3D Alignment Sub-Entity. Some alignment entities (such as compound spiral-curve-spiral groups) are themselves built from smaller pieces; this node reports a single sub-entity's type, station range, length, index within its parent, and geometry. Use it after the Civil3d Alignment Entity node to drill into the finest level of alignment geometry.
Inputs
Sub-EntityCivil3d Alignment Sub-EntityA sub-entity from a Civil3d Alignment Entity
Outputs
TypeTextThe type of sub-entity (Line, Arc, Spiral).
Start StationNumberThe starting station of this sub-entity along the alignment.
End StationNumberThe ending station of this sub-entity along the alignment.
LengthNumberThe length of this sub-entity.
IndexIntegerThe index of this sub-entity within its parent entity.
CurveCurveThe sub-entity geometry as a Rhino curve.
See also
Civil3d CANT Info
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D Alignment CANT (superelevation) information. CANT describes how a rail alignment is banked through curves; this node reports whether CANT data exists and lists the critical stations, their CANT values, and the start and end stations of the CANT curves. Feed it the CANT Info output of the Civil3d Alignment Properties node.
Inputs
CANT InfoCivil3d CANT InfoCANT information from a Civil3d Alignment
Outputs
Has CANTBooleanWhether the alignment has CANT data.
Critical StationsNumberStation values of CANT critical points.
Critical CANT ValuesNumberCANT values at critical stations.
Curve Start StationsNumberStart stations of CANT curves.
Curve End StationsNumberEnd stations of CANT curves.
See also
Civil3d Alignment Properties, Civil3d Rail Alignment Info
Civil3d Connected Alignment Info
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D connected alignment information. A connected alignment ties two parent alignments together; this node reports whether the alignment is connected, the overlap lengths and offsets at the incoming and outgoing ends, and the ObjectIds of the incoming and outgoing parent alignments. Feed it the Connected Alignment Info output of the Civil3d Alignment Properties node.
Inputs
Connected InfoCivil3d Connected Alignment InfoConnected alignment information from a Civil3d Alignment
Outputs
Is Connected AlignmentBooleanWhether this is a connected alignment.
Connection Overlap Length InNumberThe connection overlap length at the incoming end.
Connection Overlap Length OutNumberThe connection overlap length at the outgoing end.
Incoming Parent Alignment IdAutoCAD ObjectIdThe incoming parent alignment ObjectId.
Outgoing Parent Alignment IdAutoCAD ObjectIdThe outgoing parent alignment ObjectId.
Offset InNumberThe offset value at the incoming connection.
Offset OutNumberThe offset value at the outgoing connection.
See also
Civil3d Alignment Properties, Civil3d Offset Alignment Info
Civil3d Design Speeds Info
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D Alignment design speed information. Design speeds are defined at stations along the alignment; this node returns the paired lists of stations and the speed applied from each. Feed it the Design Speeds output of the Civil3d Alignment Properties node.
Inputs
Design SpeedsCivil3d Design SpeedsDesign speed information from a Civil3d Alignment
Outputs
StationsNumberStation values for speed changes.
SpeedsNumberSpeed values at each station.
See also
Civil3d Offset Alignment Info
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D offset alignment information. An offset alignment runs parallel to a parent alignment; this node reports whether the alignment is an offset, its nominal offset distance and side, the parent alignment's ObjectId, and the start/end stations and offset values of each offset region. Feed it the Offset Alignment Info output of the Civil3d Alignment Properties node.
Inputs
Offset InfoCivil3d Offset Alignment InfoOffset alignment information from a Civil3d Alignment
Outputs
Is Offset AlignmentBooleanWhether this is an offset alignment.
Nominal OffsetNumberThe nominal offset distance from the parent alignment.
SideTextThe side of the offset (Left or Right).
Parent Alignment IdAutoCAD ObjectIdThe parent alignment ObjectId.
Region Start StationsNumberStart stations of offset regions.
Region End StationsNumberEnd stations of offset regions.
Region OffsetsNumberOffset values of regions.
See also
Civil3d Alignment Properties, Civil3d Connected Alignment Info
Civil3d Rail Alignment Info
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D rail alignment information. This node reports whether the alignment is a rail alignment and, if so, its track width (rail gauge). Feed it the Rail Alignment Info output of the Civil3d Alignment Properties node.
Inputs
Rail InfoCivil3d Rail Alignment InfoRail alignment information from a Civil3d Alignment
Outputs
Is Rail AlignmentBooleanWhether this is a rail alignment.
TrackWidthNumberThe rail gauge value.
See also
Civil3d Alignment Properties, Civil3d CANT Info
Civil3d Reference Station
Civil3d › Alignments · Introduced v1.1.19
Extracts values from Civil 3D Alignment reference station information. The reference station ties a known point to a known station value, anchoring the alignment's stationing. This node reports whether a reference point exists, its world-coordinate location, and the station value at that point. Feed it the Reference Station output of the Civil3d Alignment Properties node.
Inputs
Reference StationCivil3d Reference StationReference station information from a Civil3d Alignment
Outputs
Has Reference PointBooleanWhether the alignment has a reference point.
Reference PointPointThe reference point location in world coordinates.
Reference Point StationNumberThe station value at the reference point.
See also
Create Civil3d Alignment
Civil3d › Alignments · Introduced v1.1.19
Creates a Civil 3D Alignment from a Rhino curve. Provide the curve and, optionally, a name, site, layer, style, label set, and alignment type; the node draws the alignment into the target drawing and returns the new alignment, its name, and its ObjectId. If a name is not supplied a unique one is generated, and if a style or label set is omitted the document defaults are used.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
CurveCurveThe Rhino curve to create the alignment from.
NameTextoptionalThe name for the Alignment. If not provided, a unique name will be auto-generated (e.g., GH_Alignment_001).
The site for the alignment. If not provided, a siteless alignment will be created.
The layer for the alignment. Uses the current layer if not provided.
StyleCivil3d Alignment StyleoptionalThe alignment style to apply. Can be a style name (string) or a style object. Uses Civil 3D default if not provided.
LabelSetCivil3d Alignment Label Set StyleoptionalThe alignment label set style to apply. Can be a style name (string) or a style object. Uses Civil 3D default if not provided.
TypeIntegeroptionalAlignment type: 1=Centerline (default), 2=Offset, 3=CurbReturn, 4=Utility, 5=Rail
Outputs
AlignmentCivil3d AlignmentThe created Alignment.
NameTextThe name of the created alignment (useful when auto-generated).
The ObjectId of the created alignment.
Menu & behaviour
- Right-click Replace Previous Object (on by default) — deletes the objects this node previously created before making new ones, so editing inputs updates the drawing in place instead of leaving duplicates behind.
- Right-click Save Connection Between Sessions (on by default) — remembers the link to created objects when the Grasshopper file is saved and reopened.
- Right-click Clear Connection — forgets the tracked objects without deleting them from the drawing.
- Skips re-creating objects when inputs are unchanged (shows the remark "No change in inputs, reusing last created"), and defers one solve after a Rhino undo/redo to avoid a Civil 3D crash.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No document was supplied and there is no active drawing. Open a drawing or connect a Document input. |
| Warning | No curve provided | The Curve input is empty. Supply the curve to build the alignment from. |
| Error | Invalid alignment type. Must be 1-5 (1=Centerline, 2=Offset, 3=CurbReturn, 4=Utility, 5=Rail) | The Type value is outside 1–5. Use a value in that range (the Civil3d Alignment Type value list provides valid options). |
| Error | Civil 3D error: {message} | Civil 3D rejected the alignment creation; the underlying message explains why. |
| Error | Failed to create alignment: {message} | An unexpected error occurred while creating the alignment; the message gives details. |
| Error | Failed to create alignment. The alignment name may already exist. | Creation returned nothing, often because an alignment of the same name already exists. Choose a different name. |
| Error | Failed to create alignment | The alignment could not be created for an unspecified reason. Check the inputs and try again. |
See also
Civil3d Alignment, Get Civil3d Alignments, Get Civil3d Alignment Styles
Get Civil3d Alignment Styles
Civil3d › Alignments · Introduced v1.1.19
Gets all Alignment Styles from the current Civil 3D document. Use it to list the available styles so you can feed one into the Create Civil3d Alignment node, or simply to audit what styles a drawing contains. Leave the Document input empty to read from the active drawing.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
Outputs
StylesCivil3d Alignment StyleAll Alignment Styles in the document.
Menu & behaviour
- Recomputes automatically when relevant objects are added, modified, or erased in the AutoCAD/Civil document.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No document was supplied and there is no active drawing. Open a drawing or connect a Document input. |
| Warning | No alignment styles found in the document | The drawing contains no alignment styles. This is expected for an empty drawing. |
See also
Create Civil3d Alignment, Get Civil3d Alignments
Get Civil3d Alignments
Civil3d › Alignments · Introduced v1.1.19
Gets all Alignments from the current Civil 3D document. Use it as the entry point for working with existing alignments: the output list can be filtered, then fed into the Civil3d Alignment node to extract details. Leave the Document input empty to read from the active drawing.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
Outputs
AlignmentsCivil3d AlignmentAll Alignments in the current document.
Menu & behaviour
- Recomputes automatically when relevant objects are added, modified, or erased in the AutoCAD/Civil document.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No document was supplied and there is no active drawing. Open a drawing or connect a Document input. |
| Warning | No alignments found in the document | The drawing contains no alignments. Create one first, or check you are pointed at the right document. |
See also
Civil3d Alignment, Create Civil3d Alignment, Get Civil3d Alignment Styles