mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
ExtractElements - copy over coordionate operation #8199
This commit is contained in:
@@ -109,7 +109,11 @@ class Patcher(ifcpatch.BasePatcher):
|
||||
except:
|
||||
pass
|
||||
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(
|
||||
self.new,
|
||||
library=self.file,
|
||||
|
||||
Reference in New Issue
Block a user