Problems with transform

I'm try make a mechanized arm with blocks and mates.
But when I apply a rotation in an block, "DragOperator.Drag"ignores mates. Blocks connecteds dont follow the rotationed.

Anybody already made something similar?
SolidworksApi macros