Skip to content
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

What is alternative for Type Name property? #214

Open
ashvinisawantsofttechengr opened this issue May 16, 2024 · 1 comment
Open

What is alternative for Type Name property? #214

ashvinisawantsofttechengr opened this issue May 16, 2024 · 1 comment

Comments

@ashvinisawantsofttechengr

In hoops Type name property is found but In XBIM there is no any property like type name property in identity data, Only Mark property is found. Is there any alternative for Type name property?
e.g.( GetPropertySingleNominalValue("Identity Data", "Type Name"))

@andyward
Copy link
Member

I'm assuming GetPropertySingleNominalValue(...) is looking at the Property/PropertySet data exported by the BIM authoring tool. While there are conventions, exactly where tools (like Revit) export their internal properties can be completely arbitrary (and definable by the export process & user), so generally best not to rely on those values for this kind of core data unless you have control over the wider process.

Type name can be got more reliably a couple of other ways:

  1. From an object's IsTypedBy relationship See Object Typing
  2. From the ObjectType attribute on every IfcObject

The first option is preferable. See IfcObjectType.IsTypedBy for how this works

I guess what Hoops is doing is exposing this type date in the properties, despite it not actually being a property.

e.g. In this example Revit has put a combination of the Type and Family Name into various properties in the 'Other' PropertySet.
image

But the authorative value of the Type name is found via the IsTypedBy relationship. Xbim provides a DefiningType property which lists the primary IfcTypeObject and its Name
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants