TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on October 17, 2016, 09:06:41 AM
-
The first time that I try to use "trans", and so my question is:
Can I do a "move+rotate(+scale)" with 'trans'?
Example:
- I have a pline (or a list of 3 points) from 0,0 to 5,0 to 7,7
- I want to
-- move it from 0,0 to 10,10
-- rotate it (base 10,10) from direction (0,0 - 5,0) to direction (10,10 - 20,20)
(-- scale it (base 10,10) from length (0,0 - 5,0) to length (10,10 - 20,20))
Can it be done with 'trans'?
Or is another way better?
Thanks and regards
Peter
-
Do you mean (trans) or (vla-transformby)?
-
I think that the task is a (kind of) transformation, and this is why I asked for "trans". I don't know "vla-transformby", but it seem to belong to matrix ...
-
Lee Mac has some awesome matrix transformation functions, not sure if thats you are looking for.
http://www.lee-mac.com/matrixtransformationfunctions.html
-
Lee Mac has some awesome matrix transformation functions...
I will have to think about it, but at first look it looks great - thanks for the hint :-)