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

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

14 lines
472 B
Python
Raw Normal View History

2022-12-26 11:29:32 +01:00
import ifcopenshell
for i, box_alignment in enumerate(['top-left', 'center', 'invalid', 'CENTER']):
f = ifcopenshell.file(schema="IFC2X3")
f.createIfcTextLiteralWithExtent(
"My presentable text",
f.createIfcAxis2Placement2D(f.createIfcCartesianPoint((0., 0.))),
'RIGHT',
f.createIfcPlanarExtent(10., 10.),
box_alignment
)
f.write(f"{'pass' if i in (0,1) else 'fail'}-{i}-box-alignment-{box_alignment}-ifc2x3.ifc")