Skip to content

Export curved and multi-segment Revit grids to IOScene - #265

Merged
mahach666 merged 1 commit into
mainfrom
codex/scene-curved-grids
Nov 19, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/scene-curved-grids

Conversation

@mahach666

@mahach666 mahach666 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #261. Uses the additive grid-path contract from IOExtend/IOScene#14.

RvtIO reads the circular datum's stored centre, basis, radius and angular range and resolves compound axes by their authored grid-chain segment order. The scene writes one path and label per arc or complete chain. Its chord error limit is 1 mm.

Revit and IOViewer verification

Created two synthetic RVTs in Revit 2027 and compared the exported paths with Grid.Curve and MultiSegmentGrid.GetGridIds(). The second fixture placed the chain sketch 5 ft above the model plane. The exported axis still matched the Revit curve at model Z=0.

Axis Curve Scene points Maximum chord error
ARC 90° circular arc 32 0.978 mm
MAJOR 270° circular arc 73 0.979 mm
MIXED Line, arc, line 34 0.978 mm

Chromium rendered four axes, including the straight control, as 137 line segments with eight endpoint labels. The 15 straight grid axes in the structural regression model matched the baseline. The synthetic model's IFC export with a fixed timestamp was byte-identical to main.

Curved and multi-segment grid axes in IOViewer

Companion viewer change: IOExtend/IOViewer#75.

Local checks passed on .NET 8 and .NET 10. The new synthetic decoder tests cover 32-bit and 64-bit ID records. The Revit 2022 application check stopped at an add-in prompt.

@mahach666

Copy link
Copy Markdown
Collaborator Author
ioviewer-grid-paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant