Skip to content

Read IFC string properties and point geometry in Navisworks models - #292

Merged
mahach666 merged 2 commits into
mainfrom
codex/issue-291-navisworks-reader
Dec 4, 2026
Merged

mahach666 merged 2 commits into
mainfrom
codex/issue-291-navisworks-reader

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Refs #291

Changes

  • Read class 70 partition properties as string properties. This preserves the IFC ID recorded under LcATFIFCId on its owning node.
  • Read class 96 point records and preserve their geometry, transforms and node links. Point fragments retain their original record indexes and are checked against the fragment point count and bounds. JSON mesh summaries include pointCount.
  • Report the actual geometry class ID for unsupported records. Reject point sets in the legacy NWC writer before writing any output.

Verification

  • Generated an IFC-backed NWC (lcldifc) and NWD with Navisworks 2027. NuGet 0.18.0 failed on both with class 70 during tree reading and class 96 during geometry-only reading. The patched CLI exports both with the scene tree, IFC ID property and point geometry.
  • Added synthetic regression tests for partition property parsing and point fragments. Release build and tests passed on .NET 8 and .NET 10, along with the format check and native-core-only build.

The reported alignment failure in HierarchyParser.ReadMaterial (E2) remains open. A generated federation produced the same message in ReadPartitionTrailer, which is a separate call site. To investigate E2, the next useful evidence is a small anonymized excerpt of the class-31 material header and first numeric field, with stream-relative offsets. The alignment rules remain enforced.

@mahach666
mahach666 merged commit 83bc312 into main Dec 4, 2026
5 checks passed
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