mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 12:12:15 +00:00
6 lines
299 B
Python
6 lines
299 B
Python
|
|
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")
|