Fix uses of ifcopenshell.file

This commit is contained in:
Andrej730
2026-08-03 13:18:15 +05:00
parent a86667d063
commit 26b412cff6
13 changed files with 26 additions and 26 deletions
@@ -23,7 +23,7 @@ import ifcopenshell.api.alignment
import ifcopenshell.api.unit
try:
ifcopenshell.file(schema="IFC4X3_ADD2")
ifcopenshell.file(schema="IFC4X3")
IFC4X3_AVAILABLE = True
except RuntimeError:
IFC4X3_AVAILABLE = False
@@ -31,7 +31,7 @@ except RuntimeError:
@pytest.mark.skipif(not IFC4X3_AVAILABLE, reason="IFC4X3 not available")
def test_create_as_polyline():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(GlobalId=ifcopenshell.guid.new(), Name="Test")
length = ifcopenshell.api.unit.add_si_unit(file, unit_type="LENGTHUNIT")
ifcopenshell.api.unit.assign_unit(file, units=[length])