mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Enable passing explicit IfcRepresentation in IfcOpenShell-Python create_shape()
This commit is contained in:
@@ -68,8 +68,14 @@ class iterator(_iterator):
|
|||||||
return wrap_shape_creation(self.settings, _iterator.get(self))
|
return wrap_shape_creation(self.settings, _iterator.get(self))
|
||||||
|
|
||||||
|
|
||||||
def create_shape(settings, inst):
|
def create_shape(settings, inst, repr=None):
|
||||||
return wrap_shape_creation(settings, ifcopenshell_wrapper.create_shape(settings, inst.wrapped_data))
|
return wrap_shape_creation(
|
||||||
|
settings,
|
||||||
|
ifcopenshell_wrapper.create_shape(
|
||||||
|
settings,
|
||||||
|
inst.wrapped_data,
|
||||||
|
repr.wrapped_data if repr is not None else None
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
def iterate(settings, filename):
|
def iterate(settings, filename):
|
||||||
|
|||||||
Reference in New Issue
Block a user