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.


CVL-FLFeature Lines

Civil3d Feature Line

Civil3d Feature Line icon

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

A Civil3d Feature Line

Outputs

The Id of the Feature Line.

Feature Line properties (use Feature Line Properties component to extract values).

CurveCurve

The feature line as a Rhino curve, with arcs preserved in plan.

PI PointsPointlist

The PI points, which define the horizontal geometry.

Elevation PointsPointlist

The elevation points, which add grade breaks between PI points.

Exceptions

LevelMessageCause & fix
ErrorNo document availableThe feature line's drawing is no longer open. Reopen it, or re-pick the feature line.
ErrorFailed to read Feature LineThe object could not be opened as a feature line — usually it has been erased. Re-pick it.
WarningThe Feature Line has no usable geometryNo 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



CVL-FLSrfElevFeature Lines

Civil3d Feature Line Elevations From Surface

Civil3d Feature Line Elevations From Surface icon

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

The Civil3d Feature Line to update.

The TIN surface to take elevations from. Must be in the same drawing as the feature line.

Insert Grade BreaksBooleanoptional

True to insert elevation points (grade breaks) where the feature line crosses the surface's triangle edges. Defaults to True.

Outputs

The updated Feature Line.

Feature Line properties (use Feature Line Properties component to extract values).

CurveCurve

The updated feature line as a Rhino curve.

PI PointsPointlist

The PI points, with elevations from the surface.

Elevation PointsPointlist

The 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

LevelMessageCause & fix
ErrorNo document availableThe feature line's drawing is no longer open.
ErrorCivil 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.
ErrorFailed to set elevations from surface: {error}Any other failure.
ErrorFailed to read Feature LineThe feature line could not be read back after the update.

See also

Civil3d Feature Line, Civil3d TIN Surface, Create Civil3d Feature Line



CVL-FLPropsFeature Lines

Civil3d Feature Line Properties

Civil3d Feature Line Properties icon

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

Feature Line properties from a Civil3d Feature Line

NameTextoptional

The name of the feature line. When set this will update the name of the feature line.

DescriptionTextoptional

The description of the feature line. When set this will update the description of the feature line.

StyleTextoptional

The name of a feature line style. When set this will update the style of the feature line.

Outputs

NameText

The name of the feature line.

DescriptionText

The description of the feature line.

StyleNamedId

The style applied to this feature line as a NamedId.

The site that owns this feature line as a NamedId. Empty for siteless feature lines.

Length 2DNumber

The 2D (plan) length of the feature line, in drawing units.

Length 3DNumber

The 3D length of the feature line, in drawing units.

Min ElevationNumber

The minimum elevation of the feature line, in drawing units.

Max ElevationNumber

The maximum elevation of the feature line, in drawing units.

Min GradeNumber

The minimum grade of the feature line.

Max GradeNumber

The maximum grade of the feature line.

PI CountInteger

The number of PI points.

Elevation Point CountInteger

The number of elevation points.

Curve CountInteger

The 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

LevelMessageCause & fix
ErrorNo document availableThe feature line's drawing is no longer open.
ErrorFailed 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

Civil3d Feature Line



CVL-CreateFLFeature Lines

Create Civil3d Feature Line

Create Civil3d Feature Line icon

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

DocumentAutoCAD Documentoptional

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

CurveCurve

The Rhino curve to create the feature line from.

NameTextoptional

The name for the Feature Line. If not provided, a unique name will be auto-generated (e.g., Gh_FeatureLine_001).

SiteCivil3d Siteoptional

The site for the feature line. If not provided, a siteless feature line will be created.

LayerAutoCAD Layeroptional

The layer for the feature line. Uses the current layer if not provided.

StyleTextoptional

The name of the feature line style to apply. Uses the Civil 3D default if not provided.

Outputs

The created Feature Line.

NameText

The 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

LevelMessageCause & fix
ErrorNo active AutoCAD document availableNo drawing is open and none was supplied. Open a Civil 3D drawing or connect a Document.
WarningNo curve providedThe Curve input is empty. Wire a curve.
ErrorFeature line style '{name}' does not exist in the drawing.Check the spelling, or leave Style empty to use the default.
ErrorCivil 3D error: {error}Civil 3D rejected the feature line. Check the reported reason.
ErrorFailed to create feature line: {error}Any other failure during creation.

See also

Civil3d Feature Line, Civil3d Feature Line Elevations From Surface, Get Civil3d Sites



CVL-GetFLsFeature Lines

Get Civil3d Feature Lines

Get Civil3d Feature Lines icon

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

DocumentAutoCAD Documentoptional

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

SiteCivil3d Siteoptional

Only return feature lines in this site. If not provided, feature lines from every site and siteless feature lines are returned.

Outputs

Feature LinesCivil3d Feature Linelist

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

LevelMessageCause & fix
ErrorNo active AutoCAD document availableNo drawing is open and none was supplied. Open a Civil 3D drawing or connect a Document.
WarningNo feature lines foundThe 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