Page 1 of 1

distance and angle

PostPosted: Tue Mar 23, 2021 6:18 pm
by mijenix
I just upgraded to DataCAD 22 and have run into a problem when I draw a line by putting in a distance and angle. If I type in the distance and 0 it will draw the line at the correct angle, but if I type in the distance and an angle of 90 it will draw the line the correct distance but it draws it at an angle of 242. Other angles give similar problems. I am using Rel Polar input and my start angle is correct. Another strange thing is if I click to draw a line and move the mouse around to different angles it displays them properly. Anyone know what might be causing this.

Thank you

Re: distance and angle

PostPosted: Wed Mar 24, 2021 1:30 am
by dhs
Sounds like your angle input setting may be radians. Check Settings/Angle Type and change to 'Normal' for degrees/minutes/seconds input if necessary.

Re: distance and angle

PostPosted: Wed Mar 24, 2021 7:26 am
by mijenix
Thanks DHS, that was the first thing I checked. I am not sure what else to check.

Re: distance and angle

PostPosted: Wed Mar 24, 2021 8:59 am
by Mark F. Madura
mijenix wrote:If I type in the distance and 0 it will draw the line at the correct angle, but if I type in the distance and an angle of 90 it will draw the line the correct distance but it draws it at an angle of 242. Other angles give similar problems. I am using Rel Polar input and my start angle is correct. Another strange thing is if I click to draw a line and move the mouse around to different angles it displays them properly. Anyone know what might be causing this.

Fixed for the next build. The constant for Pi was getting 'stepped on' by another constant with a value of 21. This is why a string of '90' was getting converted to 241.547... degrees instead of 90.0 degrees.

Sorry about that. :oops: