custom pset

edited November 2025 in General

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

Sign In or Register to comment.