mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Rename void to feature in code 03bfd828e2
This commit is contained in:
@@ -23,7 +23,7 @@ import ifcopenshell.api.pset
|
||||
import ifcopenshell.api.root
|
||||
import ifcopenshell.api.type
|
||||
import ifcopenshell.api.cost
|
||||
import ifcopenshell.api.void
|
||||
import ifcopenshell.api.feature
|
||||
import ifcopenshell.api.style
|
||||
import ifcopenshell.api.context
|
||||
import ifcopenshell.api.project
|
||||
@@ -378,7 +378,7 @@ class TestAppendAssetIFC2X3(test.bootstrap.IFC2X3):
|
||||
library = ifcopenshell.api.project.create_file(version=self.file.schema)
|
||||
element = ifcopenshell.api.root.create_entity(library, ifc_class="IfcWall")
|
||||
opening = ifcopenshell.api.root.create_entity(library, ifc_class="IfcOpeningElement")
|
||||
ifcopenshell.api.void.add_opening(library, opening=opening, element=element)
|
||||
ifcopenshell.api.feature.add_feature(library, feature=opening, element=element)
|
||||
ifcopenshell.api.project.append_asset(self.file, library=library, element=element)
|
||||
assert self.file.by_type("IfcWall")[0].HasOpenings[0].RelatedOpeningElement.is_a("IfcOpeningElement")
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.feature
|
||||
import ifcopenshell.geom
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.util.unit
|
||||
@@ -290,12 +291,8 @@ class Context:
|
||||
]
|
||||
)
|
||||
|
||||
ifcopenshell.api.run(
|
||||
"void.add_opening", self.model, opening=opening, element=wall
|
||||
)
|
||||
ifcopenshell.api.run(
|
||||
"void.add_filling", self.model, opening=opening, element=door
|
||||
)
|
||||
ifcopenshell.api.feature.add_feature(self.model, feature=opening, element=wall)
|
||||
ifcopenshell.api.feature.add_filling(self.model, opening=opening, element=door)
|
||||
|
||||
z_offsets = {
|
||||
'door': 0,
|
||||
|
||||
Reference in New Issue
Block a user