Search
AutoBRIDGE — Vertical Variation · 3D Polyline
AutoBRIDGE · Vertical Variation · Method 4 of 4

Vertical Variation via 3D Polyline

Vary corridor height using the Z elevation of a 3D polyline on a named CAD layer in a linked DWG — works with any CAD package that can export 3D polylines, not limited to Civil 3D.

AutoBRIDGE Vertical Variation 3D Polyline
Requires a linked DWG with a 3D polyline Works with any CAD package — not Civil 3D Requires

How the 3D Polyline Method Works

The 3D Polyline form scans CAD layers from linked DWG files in the Revit project and reads the 3D length and vertex Z coordinates of polylines found on those layers. After you select the layer and the matching polyline length, AutoBRIDGE uses the Z values along the polyline to determine the target elevation at each corridor station, computes the delta, and writes it to the chosen parameter.

Two-step source selection: First pick the Layer Name (comboBox1) from the linked DWG — AutoBRIDGE populates comboBox2 with the 3D lengths of all polylines found on that layer. Then pick the polyline length matching your corridor. This two-step approach lets you identify the correct polyline when multiple exist on the same layer.
Best for: Projects using non-Civil 3D CAD tools (MicroStation, AutoCAD without Civil, BricsCAD, etc.) where the road profile is exported as a 3D polyline on a known DWG layer.

Prepare & Link the DWG File

1

Create a 3D Polyline in the DWG

In your CAD application, draw a 3D polyline along the road profile. Each vertex must have a distinct Z value matching the design elevation at that position:

  • AutoCAD: Use the 3DPOLY command. Regular PLINE polylines are 2D and cannot store varying Z values.
  • MicroStation / BricsCAD: Use the equivalent 3D polyline tool ensuring Z is set per vertex.
  • Place the polyline on a clearly named layer (e.g. AL-PROF-FRL) — this is what AutoBRIDGE uses to identify it.
Do not use a 2D polyline with a uniform elevation. A 2D polyline has a single elevation for the entire element, not per-vertex. AutoBRIDGE reads vertex Z values, so a 2D polyline will produce a flat result identical to the Fixed Level method.
2

Link the DWG into Revit

Go to Insert → Link CAD in Revit. Select your DWG file and ensure the correct coordinate system is used:

  • Use Auto - By Shared Coordinates if the DWG uses the same shared coordinate system as the Revit project.
  • Use Auto - Origin to Internal Origin only if the DWG origin matches the Revit internal origin.

After linking, the DWG layers become available in the form's comboBox1 layer list.

Form Layout

The 3D Polyline form shares the same 5-zone structure as the Fixed Level and Model Line forms. The unique feature of Row 1 is that the 3D Polyline groupBox contains two cascading combos — Layer Name (65%) and PolyLine Lengths (35%) — matching the two-step source selection.

AutoBRIDGE — Vertical Variation · 3D Polyline Instances Family CORRIDOR FAMILY TYPE NAME BridgeDeck_BoxGirder_v2 ▾ PARAMETER NAME Top_variable ▾ A — Family + Parameter (Row 0) 3D Polyline LAYER NAME (from linked DWG) AL-PROF-FRL ▾ POLYLINE LENGTHS (m) 285.600 ▾ Parameter Direction Up ● Down B — 3D Polyline + Direction (Row 1) ↑ select layer first → PolyLine Lengths populate [ELEVATION] H1:V10 Datum 0m 100m 200m 300m 400m 3D polyline Z (target) Corridor base Z Parameter top Scroll zoom · Left-drag pan · Double-click reset · H1:10V — blue follows polyline vertex Z values from linked DWG C — Elev. Preview (Row 2) Layer: AL-PROF-FRL | Polyline 3D length: 285.600m | Vertices extracted: 57 Polyline Z values (m): 18.450, 18.412, 18.368, 18.320, 18.278 ... Corridor base Z (m): 16.160, 16.142, 16.126, 16.108, 16.092 ... Subtracted Values (m): 2.290, 2.270, 2.242, 2.212, 2.186 ... Solid: Deck_Slab created · Void: Void_Box created · Family reloaded into document. D — Log Output (Row 3) RUN E — RUN only (Row 4)
Zone A — Family + Parameter (full-width) · Zone B — Layer Name comboBox (65% of 65%) + PolyLine Lengths comboBox (35% of 65%) inside "3D Polyline" groupBox + Parameter Direction (35%) · Zone C — Preview: blue = 3D polyline vertex Z, red dashed = base Z, green = parameter band · Zone D — Log · Zone E — RUN only

Select Family, Parameter, Layer & Polyline

1

Pick the Corridor Family & Parameter

Select the corridor from comboBox5 and the parameter from comboBox4. Both are available immediately — no dependency on the DWG layer selection.

2

Select the CAD Layer (comboBox1)

The 3D Polyline groupBox in Row B shows comboBox1 populated with all CAD layer names from linked DWG files. Select the layer that contains the 3D profile polyline.

After selecting the layer, comboBox2 populates with the 3D lengths (in metres) of all polylines found on that layer. Each entry is a rounded 3D chord length — use the value closest to your corridor total length.

Identifying the right polyline: If multiple polylines exist on the same layer, compare the listed 3D lengths against the known corridor chainage. The corridor total length should match one of the entries within rounding tolerance.
3

Select the PolyLine Length & Set Direction

Pick the correct polyline length from comboBox2. The preview canvas updates to show the polyline Z profile as the blue segmented line. Set Parameter Direction (Up or Down) and verify the green band looks correct before running.

Verify Preview & Run

The elevation preview blue line will follow the vertex Z values of the 3D polyline as a segmented polyline — not a smooth curve. The number of segments depends on how many vertices the polyline has in the DWG. More vertices give a more accurate representation of the road profile.

Coordinate system: If the blue polyline appears at the wrong elevation relative to the red corridor base Z, the DWG may be linked with a different coordinate origin. Re-link the DWG using Auto - By Shared Coordinates and ensure the Revit project and DWG are on the same shared coordinate system.

Click RUN. The pipeline reads the vertex Z values from the selected polyline, interpolates at each corridor station, computes deltas, writes parameter values, rebuilds loft forms, and reloads the family into the project.

Troubleshooting

SymptomCause & fix
comboBox1 (Layer Name) is emptyNo linked DWG in the project, or DWG has no layers with polylines. Link a DWG using Insert → Link CAD.
comboBox2 (PolyLine Lengths) is empty after layer selectionNo polylines exist on the selected layer, or they are 2D polylines (no Z variation). Check the DWG and use 3DPOLY to redraw.
Blue preview line is flatThe polyline is a 2D polyline with a single uniform elevation. Redraw as a 3D polyline with per-vertex Z values.
Blue profile at wrong elevation vs red base ZCoordinate system mismatch. Re-link DWG with correct shared coordinates.
Wrong polyline selectedMultiple polylines on same layer — compare the 3D length in comboBox2 to the known corridor length and select the matching one.
Geometry inverted after RUNWrong direction. Toggle Up/Down and re-run.
AutoBRIDGE — Vertical Variation · 3D Polyline — Workflow Guide
© 2026 AutoBRIDGE Documentation  ·  auto-bridge.net  ·  Module: TopElevationPolyLine.cs
Scroll to Top