Fixed most issues with IDS auditing

This commit is contained in:
Claudio Benghi
2023-09-26 02:50:00 +02:00
parent bf8ee909ff
commit 4fda95a4a6
4 changed files with 75 additions and 70 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ class FacetDocGenerator:
# Create an IDS with the applicability selecting exactly
# the entity type passed to us in `inst`.
specs = ids.Ids(title=name)
spec = ids.Specification(name=name, minOccurs=1)
# todo: to resume IFC2X3 we need to ensure that entities and attributes are consistent with that schema in order to pass audit
spec = ids.Specification(name=name, minOccurs=1, ifcVersion=["IFC4"])
spec.applicability.append(ids.Entity(name=inst.is_a().upper()))
spec.requirements.append(facet)
specs.specifications.append(spec)