PDA

View Full Version : Script for setting a Rotation value to Dview Twist value



EvilSi
6th Dec 2010, 12:50 pm
Is there a script (non-lisp) I can use that will allow me to set the rotation of an object to that of the Dview twist?

I have this lisp, for example, which sets the snapang to the value of the Dview twist:

(setq twang (-(/ (* (GETVAR "viewtwist") 180.0) PI))
)
(initdia)
(command "snapang" twang)
)

But I need something that will do the same within LT2010. I don't know enough about script-writing to see if it's possible or not.

I know that rotating the UCS is another option here, but the key thing I need is the method by which I can set a rotation value by referencing another setting (in this case, Dview twist value).

Thanks!

EvilSi
8th Dec 2010, 03:45 pm
So, am I asking the impossible, or is it just that nobody knows the answer?

I realise that I basically need to just learn Diesel, so hopefully in doing that I will figure out how to set a particular value to the same as that of another variable.

BIGAL
13th Dec 2010, 03:22 am
Vpoint 1,1,1 is 45 horizontal 45 vertical play with the numbers x,y,z 1,1,0 0,1,0