Autodesk / revit-ifc

IFC for Revit and Navisworks (2019+)
474 stars 193 forks source link

Geometry export incorrect #137

Open FAIR59 opened 4 years ago

FAIR59 commented 4 years ago

There is a bug in the export of geometry ( Windows family ). The family has an extrusion, with face-based voids. If I change the shape of the extrusion the export is fine.

Bugreport BugReport.zip

dvrvb commented 4 years ago

is the bug also present in version 19.3.0.0? https://github.com/Autodesk/revit-ifc/releases/tag/IFC_v19.3.0.0 (since the export you posted is produced with version 19.2.x)

FAIR59 commented 4 years ago

Yes, still present BugReport_19300.zip

FAIR59 commented 2 years ago

reviving this old issue. We recently encountered the same problem again. So I decided to dive into the code, to isolate the problem. With a test file , I noticed that the opening in the ifcWindows geometry doesn't rotate. image In the FamilyInstanceExporter.cs file, the opening(s) in the IfcColumn entitytype get an extra rotation, whereas the extra rotation is missing for the ifcWindows entitytype. Adding the extra rotation seems to solve the problem. see revised file - line 1220. original code commented-out. FamilyInstanceExporter - revised.zip BugReport_IFC_Export_rvt_ifc.zip