Autodesk / revit-ifc

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

Revit fails to handle indexed poly curve with ifc arc index #359

Open Moult opened 2 years ago

Moult commented 2 years ago

A little digging in the arcs seem that Revit seems to glitch out when parsing geometry from arcs like this:

#16374=IFCCARTESIANPOINTLIST2D(((1010.,60.),(730.286976033,735.286976033),(55.,1015.)));
#16376=IFCINDEXEDPOLYCURVE(#16374,(IFCARCINDEX((1,2,3))),$);

I expect a quarter arc like that of a door swing, but I get funny arcs like shown below:

image

JOuellette-Autodesk commented 2 years ago

Hi @Moult.

Can you indicate the version of Revit and open source IFC tool? Also, is this exporting from Revit or importing (Open or Link) into Revit?

Moult commented 2 years ago

Revit 2021, version 21.2.1.0.

This is linking into Revit.

Moult commented 2 years ago

We are now publishing and requiring all of our Revit consultants who are receiving IFCs from ArchiCAD to run this patch: https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcpatch/ifcpatch/recipes/FixArchiCADToRevitDoorSwings.py

This involves a training session for consultants and a whole bunch of jargon they probably didn't want to get involved with in the first place, but is necessary unfortunately. The code is documented with the variety of bugs that we have to work through to get this solved.