Search
AutoBRIDGE — Vertical Variation · Civil 3D Profile
AutoBRIDGE · Vertical Variation · Method 1 of 4

Vertical Variation Civil 3D Profile

Drive a corridor height parameter at every station directly from a Civil 3D alignment profile — the most precise method, fully tied to the design road geometry including vertical curves and variable grades.

AutoBRIDGE Vertical Variation Civil 3D Profile
Requires Civil 3D running alongside Revit

Civil 3D Profile Method

This method queries a Civil 3D profile for the target elevation at every corridor station. For each nested adaptive instance, AutoBRIDGE computes the absolute difference between the instance's current world Z and the profile elevation at its station, then writes that delta to the selected length parameter.

The result is a corridor whose cross-section parameter — slab depth, haunch height, or any length dimension — smoothly follows the vertical road geometry defined in Civil 3D, including vertical curves, sag and crest transitions, and variable grades.

Requires Civil 3D: AutoCAD Civil 3D must be running and the source DWG must be open before opening this form. AutoBRIDGE communicates via COM and retries automatically up to 5 times on connection errors.
Up / Down direction: Up means the parameter grows upward from the instance base Z (e.g. top-of-slab thickness). Down means it grows downward (e.g. haunch depth). Always verify in the elevation preview before clicking RUN.

Full Form Layout

The Civil 3D form has five zones. Row A is unique to this method — the Instances Family groupBox (65%) and Parameter Direction groupBox (35%) share the first row. The full-width Civil 3D alignment row sits below it.

AutoBRIDGE — Vertical Variation · Civil 3D Profile Instances Family CORRIDOR FAMILY TYPE NAME (comboBox5) BridgeDeck_BoxGirder_v2 ▾ PARAMETER NAME (comboBox4) Top_variable ▾ Parameter Direction Up ✓ Down A — Family + Direction Civil 3D Alignment DOCUMENTS (comboBox1) Corridor_Project.dwg ▾ ALIGNMENTS (comboBox2) Bridge_Centreline ▾ PROFILES (comboBox3) Finished Road Level ▾ +− 0 B — Civil 3D Source [ELEVATION] H1:V10 Datum STA=0STA=100m STA=200mSTA=300m STA=400m Civil 3D profile (target) Corridor base Z Current param top Parameter band Scroll to zoom · Left-drag to pan · Double-click to reset · 1H:10V vertical exaggeration C — Elevation Preview Original Elevations (m): 16.160, 16.202, 16.244, 16.286, 16.328 ... Civil 3D Profile Elevations (m): 18.500, 18.504, 18.512, 18.524, 18.540 ... Subtracted Values |profile − base Z|: 2.340, 2.302, 2.268, 2.238, 2.212 ... Updated instance 0 parameter 'Top_variable' → 0.713m. Updated instance 1 → 0.700m ... Created solid: Deck_Slab. Created void: Void_Box. Family reloaded into project. All parameters set successfully. D — Log Output Alignment info Alignment Name: Bridge_Centreline || Start Station: 0.000 || End Station: 285.600 RUN E — Alignment Info + RUN
Civil 3D form — A (Instances Family + Parameter Direction in same row, left 65% / right 35%) · B (Civil 3D: Document / Alignment / Profile / ±offset, full width) · C (Elevation preview: blue=profile, red dashed=base Z, black=param top, green=band) · D (Log) · E (Alignment info + RUN)

Select the Corridor Family & Parameter

1

Instances Family — comboBox5

Lists all families in the Revit document with AutoBRIDGE_Type = "AutoBRIDGE_Corridor". Select the corridor to vary. Selecting auto-populates comboBox4 with all length instance parameters found in the family.

Dependency: comboBox5 and comboBox4 are disabled until all three Civil 3D combos (Document, Alignment, Profile) have a selection. Set those in Row B first.
2

Parameter Name — comboBox4

Pick the length parameter to write to. Must be an Instance parameter with no formula. Common examples: Top_variable, Haunch_Depth, Slab_Thickness.

3

Parameter Direction — Up / Down

Choose Up if the parameter grows upward from the instance base Z (e.g. top-of-slab thickness). Choose Down if it grows downward (e.g. haunch depth). Toggling immediately refreshes the elevation preview.

Select the Civil 3D Source

1

Document → Alignment → Profile (cascading)

Fill all three combos in the Civil 3D Alignment groupBox:

  • comboBox1 — Documents: all .dwg files open in Civil 3D. Select the source file.
  • comboBox2 — Alignments: populates after document. Pick the bridge centreline alignment.
  • comboBox3 — Profiles: populates after alignment. Pick the design profile.

The ± field adds a uniform elevation offset in metres to every profile elevation before the delta is computed — useful for datum corrections or design clearance adjustments.

Tip: Select the same profile used when the corridor was originally created. Using a different profile produces incorrect delta values since the base Z positions were calculated from the original profile.

Verify the Preview & Run

1

Reading the Elevation Preview Canvas

Before clicking RUN, confirm the preview shows the correct relationships:

  • Blue curve — Civil 3D profile (target elevation to reach)
  • Red dashed curve — corridor base Z at each station (current instance positions)
  • Black curve — current parameter top (base Z + existing parameter value)
  • Green band — the current parameter height occupying the gap between red and black

After a successful RUN, the black curve should coincide with the blue profile — meaning the parameter now bridges the exact gap between corridor base and the target elevation.

RUN Pipeline

Read nested instances from corridor family

Opens the selected family for editing and retrieves all nested adaptive instances from the family document.

Read current base Z of each instance

Gets world Z of each instance LocationPoint, adjusted by the main family's global position.

Query Civil 3D profile at each station

Reads the Station parameter from every instance, calls GetProfileElevationByStation on the Civil 3D profile, applies the ± offset.

Compute |profile elevation − base Z|

Absolute difference always positive. Up/Down convention handled by the family geometry.

Write delta to the selected parameter

Single Revit transaction: sets the parameter on every nested instance. Values logged to listBox1.

Delete old forms and rebuild solid/void geometry

All Form elements deleted. CreateLoftForm called for each solid then void subcategory.

Reload family into the Revit project

Updated geometry immediately visible. Elevation preview redraws showing the new state.

Undo: Use Ctrl+Z to reverse. Save the Revit model before running.

Troubleshooting

SymptomCauseFix
comboBox5 / comboBox4 are greyed outCivil 3D combos not all selectedFill Document → Alignment → Profile in Row B first — they unlock the family controls.
Civil 3D comboBox1 is emptyCivil 3D not running or no DWG openOpen AutoCAD Civil 3D with the correct DWG file before opening this form.
Geometry inverted after RUNWrong Up/Down directionToggle direction and re-run. Check green band is on the correct side of the red base line.
Parameter values near-zero on all instancesProfile elevation ≤ base ZCheck the profile is above corridor base Z. Use ± offset if a datum correction is needed.
COM error after retrying 5 timesUnstable Civil 3D connectionRestart Civil 3D and reopen the form.
AutoBRIDGE — Vertical Variation · Civil 3D Profile — Workflow Guide
© 2026 AutoBRIDGE Documentation · auto-bridge.net
Scroll to Top