Feature Lines
Components for Civil 3D's standalone feature lines — those that belong to a site or are siteless: get them from the drawing, read their geometry and properties, rename or restyle them, create them from Rhino curves, and drape them on a TIN surface.
A feature line is defined by two kinds of point. PI points define its horizontal geometry: the vertices in plan, between which each segment is a line or an arc. Elevation points sit between PIs and add grade breaks without changing the plan shape. The components below return both.
Corridor feature lines are separate. The feature lines a corridor generates have their own component, Civil3d Corridor Feature Line.
Civil3d Feature Line
Civil3d › Feature Lines · Introduced v1.3.12
Breaks a feature line down into its Id, its properties package and its geometry. The curve keeps the feature line's arcs as true arcs in plan, and follows its elevations through every PI and elevation point. The PI and elevation points are returned separately so you can work with either.
Inputs
Feature LineCivil3d Feature LineA Civil3d Feature Line
Outputs
The Id of the Feature Line.
PropertiesCivil3d Feature Line PropertiesFeature Line properties (use Feature Line Properties component to extract values).
CurveCurveThe feature line as a Rhino curve, with arcs preserved in plan.
PI PointsPointlistThe PI points, which define the horizontal geometry.
Elevation PointsPointlistThe elevation points, which add grade breaks between PI points.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The feature line's drawing is no longer open. Reopen it, or re-pick the feature line. |
| Error | Failed to read Feature Line | The object could not be opened as a feature line — usually it has been erased. Re-pick it. |
| Warning | The Feature Line has no usable geometry | No curve could be built from the feature line. The Curve output is empty; the other outputs are still set. |
See also
Civil3d Feature Line Properties, Get Civil3d Feature Lines, Civil3d Feature Line Elevations From Surface
Civil3d Feature Line Elevations From Surface
Civil3d › Feature Lines · Introduced v1.3.12
Sets the elevations of a feature line from a TIN surface — the same as Civil 3D's Elevations From Surface command. The feature line is changed in the drawing. The elevations are copied, not linked: if the surface changes later, the feature line keeps its elevations until this node runs again.
With Insert Grade Breaks on (the default), an elevation point is added wherever the feature line crosses a triangle edge of the surface, so the line follows the ground exactly. With it off, only the existing PI and elevation points are moved.
Inputs
Feature LineCivil3d Feature LineThe Civil3d Feature Line to update.
SurfaceCivil3d TIN SurfaceThe TIN surface to take elevations from. Must be in the same drawing as the feature line.
Insert Grade BreaksBooleanoptionalTrue to insert elevation points (grade breaks) where the feature line crosses the surface's triangle edges. Defaults to True.
Outputs
Feature LineCivil3d Feature LineThe updated Feature Line.
PropertiesCivil3d Feature Line PropertiesFeature Line properties (use Feature Line Properties component to extract values).
CurveCurveThe updated feature line as a Rhino curve.
PI PointsPointlistThe PI points, with elevations from the surface.
Elevation PointsPointlistThe elevation points, including any grade breaks inserted at surface crossings.
Menu & behaviour
- Elevations are only reassigned when the feature line, the surface (including its geometry) or the Insert Grade Breaks value changes. Otherwise the node just reads the feature line, so the edit it makes does not expire the nodes upstream and set off an endless solve loop.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The feature line's drawing is no longer open. |
| Error | Civil 3D error: {error} | Civil 3D rejected the operation. Check the reported reason, and that the surface is in the same drawing as the feature line. |
| Error | Failed to set elevations from surface: {error} | Any other failure. |
| Error | Failed to read Feature Line | The feature line could not be read back after the update. |
See also
Civil3d Feature Line, Civil3d TIN Surface, Create Civil3d Feature Line
Civil3d Feature Line Properties
Civil3d › Feature Lines · Introduced v1.3.12
Reads the values in a feature line's properties package — name, description, style, site, lengths, elevation and grade ranges, and point counts. The Name, Description and Style inputs are optional: wire any of them to rename, re-describe or restyle the feature line in the drawing, and the outputs report the updated values. Leave them unwired to read only.
Inputs
PropertiesCivil3d Feature Line PropertiesFeature Line properties from a Civil3d Feature Line
NameTextoptionalThe name of the feature line. When set this will update the name of the feature line.
DescriptionTextoptionalThe description of the feature line. When set this will update the description of the feature line.
StyleTextoptionalThe name of a feature line style. When set this will update the style of the feature line.
Outputs
NameTextThe name of the feature line.
DescriptionTextThe description of the feature line.
StyleNamedIdThe style applied to this feature line as a NamedId.
SiteNamedIdThe site that owns this feature line as a NamedId. Empty for siteless feature lines.
Length 2DNumberThe 2D (plan) length of the feature line, in drawing units.
Length 3DNumberThe 3D length of the feature line, in drawing units.
Min ElevationNumberThe minimum elevation of the feature line, in drawing units.
Max ElevationNumberThe maximum elevation of the feature line, in drawing units.
Min GradeNumberThe minimum grade of the feature line.
Max GradeNumberThe maximum grade of the feature line.
PI CountIntegerThe number of PI points.
Elevation Point CountIntegerThe number of elevation points.
Curve CountIntegerThe number of arc segments.
Menu & behaviour
- The drawing is only written to when a wired value differs from the current one, so an unchanged input does not modify the drawing on every solve.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No document available | The feature line's drawing is no longer open. |
| Error | Failed to update feature line: {error} | Civil 3D refused the change. Check the reported reason — for a style, that the name exists in the drawing. |
See also
Create Civil3d Feature Line
Civil3d › Feature Lines · Introduced v1.3.12
Creates a standalone feature line from a Rhino curve. The curve's plan shape becomes the feature line's PIs, with arcs kept as arcs; the elevation at each PI is taken from the curve. Supply a site to create it in that site, or leave Site empty for a siteless feature line. A name is generated (for example Gh_FeatureLine_001) if none is given.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
CurveCurveThe Rhino curve to create the feature line from.
NameTextoptionalThe name for the Feature Line. If not provided, a unique name will be auto-generated (e.g., Gh_FeatureLine_001).
The site for the feature line. If not provided, a siteless feature line will be created.
The layer for the feature line. Uses the current layer if not provided.
StyleTextoptionalThe name of the feature line style to apply. Uses the Civil 3D default if not provided.
Outputs
Feature LineCivil3d Feature LineThe created Feature Line.
NameTextThe name of the created feature line (useful when auto-generated).
The ObjectId of the created feature line.
How curves are converted
- Lines, polylines and arcs are used exactly: every polyline vertex becomes a PI, and arcs stay arcs.
- Polycurves are converted segment by segment, so a joined line-and-arc curve keeps both.
- Arcs over 180° are split in two, because a feature line cannot hold a single arc that large. A circle becomes two half-circle arcs.
- Closed free-form curves such as ellipses are opened into two halves and fitted with lines and arcs, with a polyline approximation as a last resort.
Menu & behaviour
- This is a tracking node. The component capsule renders black while it is tracking objects, and its message reads "Tracking 1 Object" or "Tracking 40 Objects".
- Right-click Replace Previous Object (on by default) — deletes the feature line this node previously created before making a new one, 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 Forget Connections — forgets the tracked objects without deleting them from the drawing.
- Right-click Delete Connected Objects — permanently erases the tracked objects from the drawing. A confirmation prompt appears first.
- Only creates a new feature line when its inputs change, so the drawing change it causes does not set off a fresh solve.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No drawing is open and none was supplied. Open a Civil 3D drawing or connect a Document. |
| Warning | No curve provided | The Curve input is empty. Wire a curve. |
| Error | Feature line style '{name}' does not exist in the drawing. | Check the spelling, or leave Style empty to use the default. |
| Error | Civil 3D error: {error} | Civil 3D rejected the feature line. Check the reported reason. |
| Error | Failed to create feature line: {error} | Any other failure during creation. |
See also
Civil3d Feature Line, Civil3d Feature Line Elevations From Surface, Get Civil3d Sites
Get Civil3d Feature Lines
Civil3d › Feature Lines · Introduced v1.3.12
Gets standalone feature lines from a Civil 3D document. With no Site supplied it returns every feature line in the drawing — those in every site and the siteless ones. Supply a site to return only the feature lines that site owns. Leave the Document input empty to use the active drawing.
Inputs
An AutoCAD Document. If not provided, the active document will be used.
Only return feature lines in this site. If not provided, feature lines from every site and siteless feature lines are returned.
Outputs
The Feature Lines found.
Menu & behaviour
- Recomputes automatically when a feature line is added to or erased from the drawing. Edits to an existing feature line expire the nodes reading it, not this list.
Exceptions
| Level | Message | Cause & fix |
|---|---|---|
| Error | No active AutoCAD document available | No drawing is open and none was supplied. Open a Civil 3D drawing or connect a Document. |
| Warning | No feature lines found | The drawing (or the chosen site) has no standalone feature lines. Add one, or pick a different site or document. |
See also
Civil3d Feature Line, Create Civil3d Feature Line, Get Civil3d Sites