mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
Fix uses of ifcopenshell.file
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user