PR: Beam export IfcRectangleProfileDef, ExtrudedSolid dimensions not as expected
- Dominant language
- C#
- Stars
- 637
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
### Problem Description
# Issue
when exporting an IFC we realised that the beam parameters (Length (L), Height (H) an Width (W)) got mixed up
there is also a difference depending on the IFC version selected,
we tested on IFC2x3, IFC4x3 and IFC 4 Design Transfer View (DTV)
Used Revit und IFC export versions:
'Autodesk Revit 25.3.0.46 (DEU) - IFC 25.4.0.27'
# IFC Definition
from the IFC definition of IfcRectangleProfileDef we expect:
W= XDim, H = YDim.
L = Depth (extrusion)

https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/link/ifcrectangleprofiledef.htm
this would be consistent with other profile definitions like IfcIShapeProfileDef:

https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/link/ifcishapeprofiledef.htm
# Revit Document
in Revit those parameters seem to be correct
Instance:

Symbol:

# Ifc Export
IFC2x3:
H and W switched

IFC4x3
L as W, W as H -> H als L

IFC DTV:
(same as 4x3)


# Files
you can get the sample files here (but its in german)
https://www.swisstransfer.com/d/e031d130-37c2-4a47-bb19-a7872d10c6d8
(will expire at 2/15/2025, feel free to contact me)
### Revit Version
2024.0.x
### IFC for Revit Addon Version
24.x.x
### Windows Version
11 22H2
Contributor guide
Research direction
Start by tracing IFC export handling for IfcRectangleProfileDef and ExtrudedSolid across IFC2x3, IFC4x3, and DTV, using the linked IFC definitions as the expected mapping. Done means exported beam dimensions consistently represent W as XDim, H as YDim, and L as extrusion depth in each reported view.
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
- Mostly clear
- Newbie friendliness
- 35/100