ifcopenshell.file - use IFC4X3 instead of IFC4X3_ADD2 for simplicity

This commit is contained in:
Andrej
2025-05-30 13:39:55 +05:00
parent e8aa508405
commit fb1b5bea51
13 changed files with 17 additions and 17 deletions
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_add_segment_to_curve():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_add_segment_to_layout():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_add_stationing_to_alignment():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_add_vertical_by_pi_method():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_add_stationing_to_alignment():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -25,7 +25,7 @@ import ifcopenshell.api.context
# class TestGetBasisCurve(test.bootstrap.IFC4X3):
def test_horizontal():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -46,7 +46,7 @@ def test_horizontal():
def test_horizontal_and_vertical():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -25,7 +25,7 @@ import ifcopenshell.api.context
# class TestGetCurve(test.bootstrap.IFC4X3):
def test_horizontal():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -46,7 +46,7 @@ def test_horizontal():
def test_horizontal_and_vertical():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -26,7 +26,7 @@ import ifcopenshell.api.nest
def _test_business_definition():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -70,7 +70,7 @@ def _test_business_definition():
def _test_geometric_definition():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -1606,7 +1606,7 @@ def _SineCurve_100_0__inf__300_1_Meter(file):
def test_map_alignment_cant_segment():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
_BlossCurve_100_0_300_1000_1_Meter(file)
_BlossCurve_100_0__300__1000_1_Meter(file)
_BlossCurve_100_0_300_inf_1_Meter(file)
@@ -2032,7 +2032,7 @@ def _SineCurve_100_0__inf__300_1_Meter(file):
def test_map_alignment_horizontal_segment():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
_BlossCurve_100_0_300_1000_1_Meter(file)
_BlossCurve_100_0__300__1000_1_Meter(file)
_BlossCurve_100_0_300_inf_1_Meter(file)
@@ -766,7 +766,7 @@ def _ParabolicArc_100_0_10_0__1_0__0_5_1_Meter(file):
def test_map_alignment_vertical_segment():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
_CircularArc_100_0_10_0_0_0_0_5_1_Meter(file)
_CircularArc_100_0_10_0_0_0__0_5_1_Meter(file)
_CircularArc_100_0_10_0_0_5_0_0_1_Meter(file)
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def test_name_segments():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -22,7 +22,7 @@ import ifcopenshell.api.context
def _test1():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(
@@ -84,7 +84,7 @@ def _test1():
def _test2():
file = ifcopenshell.file(schema="IFC4X3_ADD2")
file = ifcopenshell.file(schema="IFC4X3")
project = file.createIfcProject(Name="Test")
geometric_representation_context = ifcopenshell.api.context.add_context(file, context_type="Model")
axis_model_representation_subcontext = ifcopenshell.api.context.add_context(