Fix #3509. Backport Qto_BodyGeometryValidation to IFC4 (via EQto) and fix bug where there was no way to have custom Qtos show up in the qto dropdown.

This commit is contained in:
Dion Moult
2023-07-28 17:41:36 +10:00
parent be2e2f7e91
commit 1426481cf8
2 changed files with 18 additions and 2 deletions
@@ -61,10 +61,10 @@ class PsetQto:
for template in self.templates:
for prop_set in template.by_type("IfcPropertySetTemplate"):
if pset_only:
if prop_set.Name.startswith("Qto_"):
if prop_set.TemplateType and prop_set.TemplateType.startswith("QTO_"):
continue
if qto_only:
if not prop_set.Name.startswith("Qto_"):
if prop_set.TemplateType and prop_set.TemplateType.startswith("PSET_"):
continue
if any_class or self.is_applicable(
entity, prop_set.ApplicableEntity or "IfcRoot", predefined_type, prop_set.TemplateType