How can i move and rotate a component in assembly?

How can i move and rotate a component in assembly?

Besides, I have already used this method " swMathUtil.CreateTransform() ". It works but i can't save the assembly document.

How can i do it?

Thanks..

SolidworksApi macros