PR: Incorrect IFC Export: (instance) + (type) produces invalid IFC Predefined type
- Dominant language
- C#
- Stars
- 637
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
### Problem Description
When exporting a Revit model to IFC4x3, using:
Export As (instance parameter)
Export Type as IFC (type parameter)
It produces invalid IFC files that fail validation in buildingSMART’s Validation Service.
The issue appears to be caused by incorrect and duplicated generation of both IFC instances and IFC type objects.
### Revit Version
2025.4.x
### IFC for Revit Addon Version
25.4.40
### Windows Version
11 25H2
Contributor guide
Research direction
Reproduce the IFC4x3 export with Revit 2025.4.x and IFC for Revit 25.4.40 using Export As on the instance and Export Type as IFC on the type. Validate the generated IFC with buildingSMART’s Validation Service, then trace the export path for duplicated instance and type objects; done means the file passes validation without invalid predefined types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100