@@ -105,7 +105,7 @@ def get_material_set_pset_names(self, context):
105105 if not ifc_class or "Set" not in ifc_class :
106106 return []
107107 if ifc_class not in psetnames :
108- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
108+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
109109 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
110110 return psetnames [ifc_class ]
111111
@@ -117,7 +117,7 @@ def get_material_set_item_pset_names(self, context):
117117 return []
118118 ifc_class = tool .Ifc .get ().by_id (ifc_definition_id ).is_a ()
119119 if ifc_class not in psetnames :
120- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
120+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
121121 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
122122 return psetnames [ifc_class ]
123123
@@ -126,7 +126,7 @@ def get_task_qto_names(self, context):
126126 global qtonames
127127 ifc_class = "IfcTask"
128128 if ifc_class not in qtonames :
129- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True )
129+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True , schema = tool . Ifc . get_schema () )
130130 qtonames [ifc_class ] = blender_formatted_enum_from_psets (psets )
131131 return qtonames [ifc_class ]
132132
@@ -137,7 +137,7 @@ def get_resource_pset_names(self, context):
137137 rtprops = context .scene .BIMResourceTreeProperties
138138 ifc_class = IfcStore .get_file ().by_id (rtprops .resources [rprops .active_resource_index ].ifc_definition_id ).is_a ()
139139 if ifc_class not in psetnames :
140- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
140+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
141141 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
142142 return psetnames [ifc_class ]
143143
@@ -148,7 +148,7 @@ def get_resource_qto_names(self, context):
148148 rtprops = context .scene .BIMResourceTreeProperties
149149 ifc_class = IfcStore .get_file ().by_id (rtprops .resources [rprops .active_resource_index ].ifc_definition_id ).is_a ()
150150 if ifc_class not in qtonames :
151- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True )
151+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True , schema = tool . Ifc . get_schema () )
152152 qtonames [ifc_class ] = blender_formatted_enum_from_psets (psets )
153153 return qtonames [ifc_class ]
154154
@@ -157,7 +157,7 @@ def get_group_pset_names(self, context):
157157 global psetnames
158158 ifc_class = "IfcGroup"
159159 if ifc_class not in psetnames :
160- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
160+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
161161 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
162162 return psetnames [ifc_class ]
163163
@@ -166,7 +166,7 @@ def get_group_qto_names(self, context):
166166 global qtonames
167167 ifc_class = "IfcGroup"
168168 if ifc_class not in qtonames :
169- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True )
169+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , qto_only = True , schema = tool . Ifc . get_schema () )
170170 qtonames [ifc_class ] = blender_formatted_enum_from_psets (psets )
171171 return qtonames [ifc_class ]
172172
@@ -176,7 +176,7 @@ def get_profile_pset_names(self, context):
176176 pprops = context .scene .BIMProfileProperties
177177 ifc_class = IfcStore .get_file ().by_id (pprops .profiles [pprops .active_profile_index ].ifc_definition_id ).is_a ()
178178 if ifc_class not in psetnames :
179- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
179+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
180180 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
181181 return psetnames [ifc_class ]
182182
@@ -185,7 +185,7 @@ def get_work_schedule_pset_names(self, context):
185185 global psetnames
186186 ifc_class = "IfcWorkSchedule"
187187 if ifc_class not in psetnames :
188- psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True )
188+ psets = bonsai .bim .schema .ifc .psetqto .get_applicable (ifc_class , pset_only = True , schema = tool . Ifc . get_schema () )
189189 psetnames [ifc_class ] = blender_formatted_enum_from_psets (psets )
190190 return psetnames [ifc_class ]
191191
0 commit comments