-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcoming for validation of PredefinedType setting in entity facet #214
Comments
Hi @MatthiasWeise, |
Yes, a warning would be good to avoid misspelling of predefinedType. |
However that would prevent us from selecting specific parts of the models that have a custom predefinedType, which does not sound right. |
I was more thinking that we need both, USERDEFINED to be unspecific about what user defined type should be selected and to use any other value not being in the list of predefinedTypeEnums for a specific used defined type. |
Agreed, checking for any custom/USERDEFINED predefined type feels useful. This shouldn't preclude implicitly checking the ObjectType.
Entity Facet:
Entity Facet:
Entity Facet:
In particular, a use case might be: "All elements must NOT have a PredefinedType of USERDEFINED". That kind of test might help with #116, as presumably you could select applicable items with IfcFlowTerminal of Predefined Type 'DIFFUSER,GRILL' etc if you can exclude USERDEFINED and NOTDEFINED . This assumes implementations fall back to the Type to check the PDT - i.e [IfcAirTerminal]Type's PDT to filter the Ifc2x3 FlowTerminals. It would also let IDS police the (mis)usage we sometimes see of IfcObject.ObjectType being defined when PredefinedType is NOTDEFINED - by combining an Entity requirement and an Attribute requirement. |
I was wondering if correct use of the predefinedType is checked by http://www.xbim.it/ids.
Obviously not, because current agreement with USERDEFINED does enable to check misspelling of predefinedType.
The text was updated successfully, but these errors were encountered: