custom pset
pset template
Have the following, an empty ifc file, only containing spatial structure i.e.
- project
- site
- building
- storey(s)
Want to populate this file with spaces.
Spaces should have the following custom pset:
import ifcopenshell.util.pset
template = util_prop.ensure_pset_template(
ifc,
name="My_Data",
applicable_entity="IfcSpace",
properties=[
("My_Building", "IfcText"),
("My_Floor", "IfcText"),
("My_Zone", "IfcText"),
("My_Apartment", "IfcText"),
]
)
How to define this pset, so it is avalable for all future spaces?
Any help much appreciated
Comments
You should create a property set template in the Project Setup menu of the Project Overview tab. It is also possible to translate this JSON file programmatically using ifcopenshell.
@c4rlosdias Thanks
In this particular scenario, the ifc will only contain a skelton spatial structure and will be manually populated with ifcSpace(s). The only pset I will be using / attaching is the Custom pset. Any Ideas on best workflow?
I guess this is what you're looking for.
@atomkarinca yes, but probably not for this scenario. ifcShapes are modeled manually and related in structure. The custom pset properties will be added manually. Would like to in this case have my custom pset as the only available pset, and preferably have it added to every new created ifcSpace object.
If you add property set templates for IfcSpace, these properties will be available for users to fill in only if they use Bonsai: https://docs.ifcopenshell.org/autoapi/ifcopenshell/api/pset_template/index.html
I think this link might help with what you're looking for:
https://wiki.osarch.org/index.php?title=BlenderBIM_Add-on/BonsaiBIM_Features_Guide#Pset:_Add.2C_modify.2C_or_delete_Property_Set
It explains how to create a custom template for your projects so you can reuse it across all of them, among other things.
@BimETS thx