I have a challenge in that one Object2 is a Linked copy of Object1 with a different Placement (Base), otherwise the Shape of the two objects are the same. If I try and create a new shape from the objects with something like
Code: Select all
def adjustShape(part):
# Shape is immutable so have to copy somehow?
shape = part.Group[0].Shape
return shape.translate(part.Placement.Base)
Okay the following works
Code: Select all
def adjustShape(part):
# Shape is immutable so have to copy somehow?
shape = part.Group[0].Shape.copy()
return shape.translate(part.Placement.Base)