Hey Joe,
Thanks for the Matrix codes. I have been working one some (trying to understand them) and I came up with the same rotation calculations that you did, and they both don't seem to work correctly. Maybe I'm using them wrong I don't know. What I'm doing here is:
I get all the objects from the selected xref.
I copy them into the current drawing, into a new block definition.
I then apply the functions you provided to the xref selected.
I then apply the returned matrix to each object.
I then insert the block, hoping that it matches what is on the screen now
but the rotation is wrong, but the scaling is right.
What am I doing wrong?
Thanks in advance.
Hi Tim,
I'm replying to the above and your later message after you found the solution.
I don't understand. Are you saying you did not get an error when the vlax-tmatirx function was not included? Just that the result was incorrect? if so, that is strange. I would expect TransformBy to choke without the conversion vlax-tmatrix does.
Were you doing this: (vlax-invoke obj 'TransformBy <raw matrix>)? I haven't tried it. I guess there's a chance TransformBy, called that way, might accept that.