Open Moult opened 2 years ago
actually such a must was not intended. The specification is meant to be flexible. It also allows e.g. to have types with no corresponding occurrence in an exchange. Such a strict interpretation may be in conflict with current implementations and should rather be postponed to a more general rework allowing for less flexibility in IFC5.
So my proposal is to more this issue to the IFC5 log. There is a related issue about allowing direct use of IfcShapeRepresentation by multiple IfcObject without going via IfcMappedItem/IfcRepresentationMap - this should be considered together with this issue. So I propose to label it als IFC5 issue
Having types with no corresponding occurrence wasn't the issue, the issue is can I have an object that has a type with a mapped representation, but not use it?
The general (explicit) agreement is also that non-rooted entities don't have a strong identity. So it would not be entirely inline with this to require explicit reuse. It may also negatively impact partial exchanges.
Creating one or more IfcObjects which share a mapped representation
This is definitely allowed I think. Maybe then more for efficiency but not semantic. Like a railing with repeated bars for example.
Creating a relating type with a mapped representation, but the corresponding occurrences only use some, but not all of the representations (e.g. they will map the body, but not a footprint)
It may also be necessary for openings. We can associate a 3d opening element, but for 2d representations this doesn't really exist, so then maybe it would make sense to reuse the 3d rep but for the 2d rep bake the opening into the curve footprint.
I don't see an issue with the wording. "May" is maybe not ambiguous, just non-normative? Or did I miss a deeper meaning?
Having types with no corresponding occurrence wasn't the issue, the issue is can I have an object that has a type with a mapped representation, but not use it?
definitely yes (not saying that it is the best solution, but current practise)
Originally posted https://forums.buildingsmart.org/t/must-mappedrepresentations-come-from-the-corresponding-ifc-type/3361 and quoted below.
There are a number of quotes in the IFC docs that suggest that if an IfcTypeObject (e.g. IfcFurnitureType) have a MappedRepresentation, then all corresponding IfcObject occurrences (e.g. IfcFurniture) must have the exact same mapped geometry. If the IfcTypeObject (e.g. IfcWallType) does not have a MappedRepresentation, then the inverse is true, all corresponding IfcObject occurrences (e.g. IfcWall) must not have mapped geometry.
Supporting evidence (emphasis mine):
(note the ambiguity of the word "may" in the sentence above)
(note again the ambiguity of the word "may" in the sentence above)
In addition to this, the code examples provided in 8.9.3.49 IfcRepresentationMap all demonstrate this map + type relationship.
The following two diagrams also depict this seemingly mandatory relationship:
... from reading this, I would conclude there is the intention for this to be mandatory. However, I have not seen any where rules or codified constraints in the EXPRESS that reflect this. Therefore, I have seen applications such as Revit, the BlenderBIM Add-on, FreeCAD and I suspect others too, that actually allow the following scenarios, which supposedly are invalid:
... and other various permutations of this.
Can somebody I guess firstly confirm the intention (which from the words seem pretty clear, but it would be good to get a second pair of eyes), and secondly point out where this is defined in EXPRESS, or confirm that it is missing?