IfcCSV - How to export IfcClassificationReference data to CSV
Can anybody tell me what the syntax is to extract classification data to csv? I've already looked at the documentation (https://blenderbim.org/docs-python/ifccsv.html
Tagged:
Comments
I'd like to know that too :)
The following PR adds classification, but I got lost when it came to importing the classification back into BB.
It works, however, on export. :)
https://github.com/IfcOpenShell/IfcOpenShell/pull/3968
@Moult think it's worth still pulling in?
Hi all,

syntax like this work for me:
in filter I usually use "IfcElement" (without commas) and in CSV attribute "Pset_Name"."Pset_Property"
Looks like Dion merged it. @chachi_ws @fbosche give it try. :)
If I use "classification", I get the IFC file line, not the value. For example:
#44685=IfcClassificationReference('https://identifier.buildingsmart.org/uri/nbs/uniclass2015/1/class/Pr_20_93_71_18','Pr_20_93_71_18','Concrete diaphragm wall units',#44683,$,$).
@theoryshaw : you don't get that?
try
classification.Name
classification.Location:
https://identifier.buildingsmart.org/uri/nbs/uniclass2015/1/class/Pr_20_93_71_18
classification.Identification:
Pr_20_93_71_18
classification.Name:
Concrete diaphragm wall units
see the other attributes you can pull out: https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/IfcClassificationReference.htm
It works, thanks! After I installed the last BlenderBIM release from GitHub (blenderbim-231215)


When I use the Uniclass reference (using bSDD), I get the name right, but don't know how to access the Uniclass code. In the ItemReference, I get "None". I've been trying with the "Uniclass 2015" as active domain; could that be the source of the problem?