I am wanting to rotate a part in a STEP assembly. I use
Code: Select all
myObj = Gui.Selection.getSelection()[0]
But then, I am not allowed to do:
Code: Select all
>>> myObj.Shape.rotate(...)
Traceback (most recent call last):
File "<input>", line 1, in <module>
ReferenceError: This object is immutable, you can not set any attribute or call a non const method
Code: Select all
myShape = myObj.Shape.copy()
myShape.rotate(...)
myObj.Shape = myShape
Thanks!