I want Description of Space in IFC file to contain the info from "Label2" or other attributes when it's populated and empty otherwise. How to get the desired results?
The IFC properties are mapped with the DG properties using .set files. In the Dataset_XX/Setting folder, there are 2 files that drives the mapping. they are IFC_PropertyMapping.ifc2x3.set for IFC2*3 property mapping and IFC_PropertyMapping.ifc4.set for IFC4 mapping. Please follow the below steps to achieve the same.
1. Go to the desired Dataset/Settings folder and open either of the 2 files mentioned above. For example i am opening IFC_PropertyMapping.ifc4.set.2. Scroll down to line 44 where it has been stated Space * * Description * ArchSpace/@label 3. To change the output in the IFC file you need to change the line to get desired result. Modify the line to Space * * Description * EVALUATE FirstDefined (DG("ArchSpace/@label2"), " "). This will look for Label2 value first, if not found then put that field as empty.
4. After doing the necessary changes, export the space to IFC and you will notice the changes in the description field,