Zero the Transformation

Hi All,
Lets say I have an InstanceObject, which I have rotated it around all axis(X,Y and Z).
now I want to Turn it back t where it was and Zero the rotation.
So, what’s the best Way to do that?

I suppose you could use ReplaceInstanceObject and use the object’s own instance index.

1 Like

thanks Menno,
I actually couldn’t work with that, unfortunately It returns the same InstanceObject with the same rotation :face_with_thermometer:

This is what I did:

var blk = "my instanceObject, selected from the ActiveDoc"
ActiveDoc.Objects.ReplaceInstanceObject(blk.Id, blk.InstanceDefinition.Index);