XbimEssentials icon indicating copy to clipboard operation
XbimEssentials copied to clipboard

How to get Ifc Class Tree for IFC4x3 and list of all properties

Open GVladislavG opened this issue 9 months ago • 6 comments

Hello, team! I have these two files with Class tree and list of alll property sets for IFC4.

IFC.zip

I need such files for IFC4x3. Can you help me?

Thanks!

GVladislavG avatar Apr 04 '25 12:04 GVladislavG

You can find all available properties and quantities in this file from the official documentation: https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/HTML/annex-a-psd.zip

martin1cerny avatar Apr 04 '25 13:04 martin1cerny

If you want the property sets (programmatically) take a look at https://github.com/xBimTeam/XbimPropertySets

To get the class hierarchy you can use the ExpressMetaData within xbim.Common. See https://github.com/xBimTeam/XbimEssentials/blob/develop/Tests/ExpressMetadataTests.cs for an example of usage

andyward avatar Apr 04 '25 14:04 andyward

And can I get properties and class tree in two files? Like in attached example. Cause I need it to load in treeview.

GVladislavG avatar Apr 06 '25 20:04 GVladislavG

Sure you can. How did you create the files in attached zip files?

andyward avatar Apr 07 '25 08:04 andyward

I did not create IFC4_ADD2.ifc. I downloaded this file from here) Maybe someone of xBim team gave it in one of issue topics)

GVladislavG avatar Apr 07 '25 10:04 GVladislavG

buildingSMART published all properties in this form for IFC4: https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/annex/annex-a/general-usage/index.htm

But they don't provide them in this form for IFC 4.3: https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/HTML/annex-a.html

You can still read the XML and transform it to IFC yourself using the Toolkit.

martin1cerny avatar Apr 10 '25 08:04 martin1cerny