mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 21:12:07 +00:00
WIP you can now partially edit the object placement of an object. See #1222.
This commit is contained in:
@@ -13,6 +13,7 @@ import ifcopenshell.util.geolocation
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.schema
|
||||
import tempfile
|
||||
import numpy as np
|
||||
from . import export_ifc
|
||||
from . import import_ifc
|
||||
from . import qto
|
||||
@@ -4351,6 +4352,13 @@ class BakeParametricGeometry(bpy.types.Operator):
|
||||
self.file = ifc.IfcStore.get_file()
|
||||
element = self.file.by_id(obj.data.BIMMeshProperties.ifc_definition_id)
|
||||
|
||||
import blenderbim.bim.module.geometry.add_object_placement as add_object_placement
|
||||
usecase = add_object_placement.Usecase(self.file, {
|
||||
"product": self.file.by_id(obj.BIMObjectProperties.ifc_definition_id),
|
||||
"matrix": np.array(obj.matrix_world)
|
||||
})
|
||||
result = usecase.execute()
|
||||
|
||||
import blenderbim.bim.module.geometry.add_shape_representation as add_shape_representation
|
||||
usecase = add_shape_representation.Usecase(self.file, {
|
||||
"context": element.ContextOfItems,
|
||||
|
||||
Reference in New Issue
Block a user