
Re: When you use trigonometric functions in equations, how do you select Degrees or Radians?
Josh Brady Jan 4, 2010 8:20 AM (in response to Charly Meyer)Have you seen the dropdown box I circled in the attached picture?
A couple of caveats:
This dropdown box applies only to the arguments or return values of the trig functions themselves. SW will then take the numerical result and plug it in to your dimension.
For example, in the picture I posted, I have the document's angular units set to radians, and I have the dropdown box set to radians. That first equation returns the expected 0.14... radians and puts it into the value of the dimension. However, if that dimension were set as a degree dimension with the circled dropdown box set to radians, I would get an unexpected result in that the value of the dimension would actually be 0.14... degrees. If you want to calculate using radians but put your result in degrees, you will have to do that unit conversion inside the equation.

Clipboard01.jpg 67.1 KB

Re: When you use trigonometric functions in equations, how do you select Degrees or Radians?
Charly Meyer Jan 4, 2010 8:53 AM (in response to Josh Brady)Hi Josh,
Thanks for your answer.
I also would like to use a trigonometric function to set a dimension directly in a feature dialog box or in the dimension box . For example draw a line, create a dimension for the line you just created and set the length to "arcsin(1/7)". It seems that SW doesn't support the arcsin function and computes the supported functions like the sin function in radians.
The equation box works fine for me. arcsin(1/7) returns the right value in degrees or in radians according to the dropdown box.
I have SW 2009 SP4.0
Charly

trigonometric function.jpg 44.3 KB

Re: When you use trigonometric functions in equations, how do you select Degrees or Radians?
Josh Brady Jan 4, 2010 10:03 AM (in response to Charly Meyer)Unfortunately, direct entry of trig functions into a dimension/feature dialog is not directly supported. It is possible to use VBA functions in these boxes, as
sin(3/4)
however, since that is evaluated by the VBA engine, there is no option for degrees/radians. It will always evaluate radians. The other drawback is that there is no arcsin function built into VBA. You would have to use the identity Asin(X)=Atn(X / Sqr(X * X + 1)), which would be rather cumbersome to enter into the box.

