View Single Post
  #4  
Old 11-24-2016, 05:45 AM
rvn rvn is offline
Registered User
 
Join Date: Mar 2011
Posts: 52
Re: Some questions in the code

Hi Kting

In the normal dialog you give the angle in degrees but in the back (in the code) the angle is converted to radials.
So if you make use of the code with lisp then you should use radials instead of degrees.
Or you need to convert it yourself in the back.

You give in 0.9degree and get 51....degrees. Just to point out what happens here --> 0.9rad = 51,... deg :-).

The only thing you need to put in the code is this:
Code:
(position_pa :part_assembly test_p
                     :rotate :axis :pt_dir fix_pnt1 (first dir1)
                     :rotation_angle (sd-deg-ro-rad 0.9)
                     :done)
And normally this should work perfectly.

kind regards
Ruben
Reply With Quote