mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
ExtractElements - copy over coordionate operation #8199
This commit is contained in:
@@ -109,7 +109,11 @@ class Patcher(ifcpatch.BasePatcher):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if element.is_a("IfcProject"):
|
if element.is_a("IfcProject"):
|
||||||
return self.new.add(element)
|
proj = self.new.add(element)
|
||||||
|
for ctx in element.RepresentationContexts:
|
||||||
|
for coop in ctx.HasCoordinateOperation:
|
||||||
|
self.new.add(coop)
|
||||||
|
return proj
|
||||||
return ifcopenshell.api.project.append_asset(
|
return ifcopenshell.api.project.append_asset(
|
||||||
self.new,
|
self.new,
|
||||||
library=self.file,
|
library=self.file,
|
||||||
|
|||||||
Reference in New Issue
Block a user