Skip to content

Ifc: add options for Revit parameter units and display names - #330

Merged
mahach666 merged 2 commits into
mainfrom
feat/ifc-revit-param-units-names
Nov 27, 2026
Merged

mahach666 merged 2 commits into
mainfrom
feat/ifc-revit-param-units-names

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Closes #323

Summary

  • Add --ifc-revit-parameter-units <ifc|internal> and --ifc-revit-parameter-names <display|builtin> CLI flags, IfcPropertySetConfiguration / IfcExportConfiguration settings (revitParameterUnits, revitParameterNames), IfcExporter properties, JSON round-trip, validation, and --ifc-capabilities entries.
  • Convert length, area, volume, and angle parameters to IFC file units and known physical spec types from Revit internal units to SI units using their exact length exponent (0.3048^L) and IFC measure types when ifc units are selected.
  • Resolve human-readable display names for built-in parameters (API definitions + compact built-in labels) and user/project/family parameters, placing the BuiltInParameter name in IFCPROPERTYSINGLEVALUE.Description and keeping distinct descriptions separate in the property value cache.
  • Preserve existing --ifc-revit-parameters / --ifc-revit-parameter-groups defaults when the new options are not specified.
  • Document options in docs/ifc-export.md and README.md and add synthetic unit/config/CLI tests in IfcExporterRevitParameterFormattingTests.

Verification

  • dotnet test tests/RvtIO.Tests/RvtIO.Tests.csproj -c Release: 12205 passed, 0 failed, 453 skipped (net10.0); 12201 passed, 0 failed, 453 skipped (net8.0).
  • dotnet build src/RvtIO.Scene/RvtIO.Scene.csproj -c Release -p:BuildNativeCoreOnly=true: 0 errors.

mahach666 and others added 2 commits November 27, 2026 06:05
With display or builtin names selected, properties that would share a name
in a set get a parameter ID suffix. With IFC units, every measure has a
declared unit, the length exponents of several specs are corrected and a spec
is no longer guessed from the parameter name. Both parameter options turn on
the Revit property sets with a configuration file too.
@mahach666
mahach666 merged commit 59ca171 into main Nov 27, 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.

--ifc-revit-parameters: option to write values in IFC/SI units and use parameter display names

1 participant