Files
IfcOpenShell/src/ifcopenshell-python/test/fixtures/rules/generate_04.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
299 B
Python
Raw Normal View History

2022-12-26 11:29:32 +01:00
import ifcopenshell
for i, (r1, r2) in enumerate([("SUPPLIER", None), ("SUPPLIER", "Valid"), ("USERDEFINED", "Valid"), ("USERDEFINED", None)]):
f = ifcopenshell.file(schema="IFC2X3")
f.createIfcActorRole(r1, r2)
f.write(f"{'fail' if i == 3 else 'pass'}-actor-role-{r1}-{r2}-ifc2x3.ifc")