Autodesk / Autodesk/revit-ifc

PR: Beam export IfcRectangleProfileDef, ExtrudedSolid dimensions not as expected

Open
#837 4 comments 0 reactions 0 assignees View on GitHub
problem
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)
![Image](https://github.com/user-attachments/assets/7e36e8ec-329b-413d-b4e6-00ee93a1bbf9)
https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/link/ifcrectangleprofiledef.htm
this would be consistent with other profile definitions like IfcIShapeProfileDef:
![Image](https://github.com/user-attachments/assets/b23ddece-f868-47e0-b922-6bfcc9230278)
https://standards.buildingsmart.org/IFC/RELEASE/IFC4_1/FINAL/HTML/link/ifcishapeprofiledef.htm
# Revit Document
in Revit those parameters seem to be correct
Instance:
![Image](https://github.com/user-attachments/assets/b1993c10-61fb-469b-9dcf-17d7799ea73d)
Symbol:
![Image](https://github.com/user-attachments/assets/cdbd05a4-24c4-4595-bed9-67443bb0952c)
# Ifc Export
IFC2x3:
H and W switched
![Image](https://github.com/user-attachments/assets/d791ecf0-0144-400e-9ebe-34560ed7401a)
IFC4x3
L as W, W as H -> H als L
![Image](https://github.com/user-attachments/assets/cc32b800-403c-4f54-ab4a-1528be444af8)
IFC DTV:
(same as 4x3)
![Image](https://github.com/user-attachments/assets/9c7ba9af-dee9-4fe9-ac4c-be380cb4c5e2)
![Image](https://github.com/user-attachments/assets/86fec3b0-45c6-43d5-9d78-5c315c813bc9)
# 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.