Autodesk / revit-ifc

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

Incorrect IFC export while using the Revit API #397

Open Teun1 opened 2 years ago

Teun1 commented 2 years ago

There seem to be some bugs and / or unexpected behavior while exporting to IFC based on the Revit API. While exporting manually with the latest exporter and the latest Revit version everything seems oké. Besides that the file size seems to be 3x as big as the former version. But if we use an automated way, things go wrong.

Based on https://www.revitapidocs.com/2022/03f1bce3-dd39-9deb-c732-db82474cb40b.htm, we can use different IFCVersions. They match the manual version and have a few extra.

IFC4RV (IFC4 Reference View) Gives dislocated geometry in the latest version. And the filesize is 3x as big. IFC4DTV (IFC4 Design Transfer View) Adds in some places more geometry - not sure why. File size is not very different than before.

We need the IFC4RV version.

If it helps to solve this behavior I can send some testfiles. Just tell we what is needed and where to send it to.

picture 1 - IFCRV dislocated geome picture 2 - IFCDTV extra geometry ? picture 3 - expected and correct behavior (old and automated versions and new versions manually)

BWK_test_IFC4RV BWK_test_IFC4DTV BWK_test_IFC4RV_old

Teun1 commented 2 years ago

Update. (but still not working) It's not the site placement - tested all 4 It's not the relative position to point zero - same behavior when troubled object are completly in the 1th quadrant

I have tested the following options (not all combinations of course) but no improvements ExportSolidModelRep, UseOnlyTriangulation, ExportPartsAsBuildingElements, UseActiveViewGeometry, FileType (IFC XML gave an unrecoverable error)

I have tried making parts in Revit. Some minor differences but still not correct.

Not viewer dependent. I used BIM Collab Zoom, Solibri and FZK viewer

Moschi87 commented 2 years ago

We also have a problem with dislocated walls when using IFC4 Reference View with the latest IFC exporter (21.4.2.0) an Revit 2021. It was possible for us to find the (or one?) reason which triggers the problem: If the wall has a round opening (or rounded edge) then the exporter will dislocate this wall. Rectangular openings have no problems.

There is a support case open at Autodesk (CaseNo:18668222) and they informed their development team about this issue.

Let's hope they fix it soon...

JOuellette-Autodesk commented 2 years ago

@Teun1 You can attach small test files here.

What version are you seeing the problems?

Teun1 commented 2 years ago

The old version is created with a python script on a computer with the version 22.0.2.392 - Exporter 22.2.1.0 - Default UI The other files are created with a python scripts in a VDI enviroment with the version 22.1.10.541 - Exporter 22.4.0.0 - Default UI In the log file the script adds the export settings. 220311.zip

JOuellette-Autodesk commented 2 years ago

https://jira.autodesk.com/browse/REVIT-189541

t-vasyi commented 4 months ago

The old version is created with a python script on a computer with the version 22.0.2.392 - Exporter 22.2.1.0 - Default UI The other files are created with a python scripts in a VDI enviroment with the version 22.1.10.541 - Exporter 22.4.0.0 - Default UI In the log file the script adds the export settings. 220311.zip

Hi @Teun1, The attached archive contains only exported IFC files. Could you share the Revit model for them so I can reproduce the issue? Thanks.