TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Peter2 on October 17, 2016, 09:06:41 AM

Title: move+rotate(+scale) with 'trans'?
Post 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
Title: Re: move+rotate(+scale) with 'trans'?
Post by: roy_043 on October 17, 2016, 09:18:04 AM
Do you mean (trans) or (vla-transformby)?
Title: Re: move+rotate(+scale) with 'trans'?
Post by: Peter2 on October 17, 2016, 09:38:08 AM
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 ...
Title: Re: move+rotate(+scale) with 'trans'?
Post by: Grrr1337 on October 17, 2016, 01:03:11 PM
Lee Mac has some awesome matrix transformation functions, not sure if thats you are looking for.
http://www.lee-mac.com/matrixtransformationfunctions.html
Title: Re: move+rotate(+scale) with 'trans'?
Post by: Peter2 on October 17, 2016, 03:12:28 PM
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   :-)