[ Error ] PlacesObject does not exist in IfcAxis2Placement3D in BimServer

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

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

Post by hlg »

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.
User avatar
hlg
Posts: 39
Joined: Fri Jul 12, 2019 10:11 am

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

Post by hlg »

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
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

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

Post by bernd »

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