This commit is contained in:
Gorgious
2021-11-18 10:38:27 +01:00
5 changed files with 11 additions and 11 deletions
@@ -29,7 +29,7 @@ def get_containing_spatial_elements(element):
@step('There is a datum element "{guid}" as an "{ifc_class}"')
def step_impl(context, guid, ifc_class):
element = utils.assert_guid(IfcStore.file, guid)
element = util.assert_guid(IfcStore.file, guid)
util.assert_type(element, ifc_class)
@@ -46,7 +46,7 @@ def step_impl(context, guid, easting, northing, elevation):
site = potential_sites[0]
else:
assert False, _("The datum element does not belong to a geolocated site")
map_conversion = assert_pset(site, "EPset_MapConversion")
map_conversion = util.assert_pset(site, "EPset_MapConversion")
else:
map_conversion = IfcStore.file.by_type("IfcMapConversion")
if map_conversion:
@@ -54,7 +54,7 @@ def step_impl(context, guid, easting, northing, elevation):
else:
assert False, _("No map conversion was found in the file")
element = utils.assert_guid(IfcStore.file, guid)
element = util.assert_guid(IfcStore.file, guid)
if not element.ObjectPlacement:
assert False, _("The element does not have an object placement: {}").format(element)
m = ifcopenshell.util.placement.get_local_placement(element.ObjectPlacement)
@@ -81,7 +81,7 @@ def step_impl(context, guid, easting, northing, elevation):
@step('The element "{guid}" has a local X, Y, and Z coordinate of "{x}", "{y}", and "{z}" respectively')
def step_impl(context, guid, x, y, z):
element = utils.assert_guid(IfcStore.file, guid)
element = util.assert_guid(IfcStore.file, guid)
if not element.ObjectPlacement:
assert False, _("The element does not have an object placement: {}").format(element)
m = ifcopenshell.util.placement.get_local_placement(element.ObjectPlacement)
@@ -11,7 +11,7 @@ Szenario: Bereitstellen von IFC-Daten
* Die IFC-Daten müssen das "IFC2X3" Schema benutzen
Szenario: Projektinformationen
* Der Name, die Abkürzung oder die Kurzkennung des Projektes ist "BIMTester Example 1 - IFC2X3"
@@ -10,8 +10,8 @@ We need an IFC file
Scenario: IFC data
* IFC data must use the "IFC2X3" schema
Scenario: Project information
* The project name, code, or short identifier must be "BIMTester Example 1 - IFC2X3"
@@ -11,7 +11,7 @@ Scénario: Recevoir e fichier
* Les données IFC doivent utiliser le schéma "IFC2X3"
Scénario: Informations concernant le projet
* Nom du projet, son code ou un identifiant sommaire du type "BIMTester Example 1 - IFC2X3"
@@ -11,7 +11,7 @@ Scenario: Bestand ontvangen
* IFC-gegevens moeten het "IFC2X3" -schema gebruiken
Scenario: Project informatie
Scenario: Project informatie
* De projectnaam, code of korte ID moet "BIMTester Example 1 - IFC2X3"