mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
14 lines
472 B
Python
14 lines
472 B
Python
|
|
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")
|