USERDEFINED and ObjectType #367
-
Hi, I have tried to place the ObjectType in the applicability, but Bonsai is giving me an error "unexpected child". I have also tried it as a requirement in the property, but the result was faulty (no elements checked). I would appreciate it if someone could explain this method to me and maybe give an example. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
If you share some code that might help explain exactly what you're doing. You just need to use the |
Beta Was this translation helpful? Give feedback.
-
Hi Dion, Trying as part of an entity
Trying is a property:
I am thankful for your help |
Beta Was this translation helpful? Give feedback.
-
Hi @BIMster008, the ObjectType is an attribute, not a property. That's a very IFC-ish thing which has to be defined differently in the IDS. Here is the corrected applicability part:
|
Beta Was this translation helpful? Give feedback.
You don't need a separate attribute check. IDS works the same way as IFC, the ObjectType (or ElementType) is interpreted as the value of the predefined type.
This is documented here: https://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/entity/pass-a_predefined_type_may_specify_a_user_defined_ele…