Skip to content

Real-world NWD fails: "expanded tree exceeds 134217728 property references" — please make the limit configurable #288

Closed

Description

@samlamaiai001-tech

Hi, thanks for NwcIO.

Reading a real project model (federated master model, 614 MB NWD, saved in Navisworks 2027) with v0.17.0 CLI (net8.0) fails:

nwcio "model.nwd" "out.json" --no-meshes --no-materials --no-transforms --report
Error: File 'model.nwd' is not a valid Navisworks container: LcOpNwdLogicalHierarchy at byte 498085584: expanded tree exceeds 134217728 property references

The comment on HierarchyParser.MaxExpandedProperties says to raise it if a real model needs more — this is such a model. The parser got to ~498 MB of the 614 MB file before hitting the cap, so the 2027 format itself seems to parse.

Requests:

Raise the default caps (MaxExpandedProperties, possibly MaxExpandedNodes), and/or
Add a CLI option or environment variable (e.g. --max-property-refs, NWCIO_MAX_PROPERTY_REFS) so users with large models and enough RAM can opt in.

Environment: Windows 11, .NET Runtime 8.0.23, 128 GB RAM, NwcIO-Cli-0.17.0.zip.

I can't share the model (client project), but I'm happy to test a build.

Activity

  1. mahach666 commented on Nov 23, 2026

    @mahach666
    Collaborator

    Thanks for your interest in NwcIO and for reporting this. We reproduced the same error with a small synthetic NWD, so we didn’t need your project model. The fix is in #289.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions