[ Error ] PlacesObject does not exist in IfcAxis2Placement3D in BimServer

This forum section is only for IFC-related issues
hlg
Posts: 19
Joined: Fri Jul 12, 2019 10:11 am

Re: [ Error ] PlacesObject does not exist in IfcAxis2Placement3D in BimServer

Postby hlg » Thu Nov 14, 2019 11:29 am

Ok, here is the PR: https://github.com/FreeCAD/FreeCAD/pull/2714.

However, I think a more general approach to avoid or at least detect generation of invalid IFC would be necessary. The issue we see here is not about modelling something in different ways according to the schema and then applications to support only one way or the other, which is indeed annoying. The issue here is, that syntactically invalid IFC is created which any schema-aware application would reject, no matter whether it can interpret the present concepts semantically or not. The current IFCOpenShell implementation does not seem to provide any support for checking of proper entity attribute types when creating entities. It just checks for simple data types.
hlg
Posts: 19
Joined: Fri Jul 12, 2019 10:11 am

Re: [ Error ] PlacesObject does not exist in IfcAxis2Placement3D in BimServer

Postby hlg » Thu Nov 14, 2019 5:07 pm

Now that IFCOpenShell 0.6.0 made it into 0.19 builds, we have the whole schema available at runtime: https://github.com/IfcOpenShell/IfcOpenShell/issues/718. I would suggest to implement optional schema validation either on instantiation or on final saving the IFC. This option could be switched on for debugging and during test runs. I would volunteer to implement this, but may take some time. If anyone is faster, go ahead and take this.
User avatar
bernd
Posts: 8488
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: [ Error ] PlacesObject does not exist in IfcAxis2Placement3D in BimServer

Postby bernd » Fri Nov 15, 2019 11:29 am

Go for it. FreeCAD motto is: It's done when it's done.