Hello

When you use trigonometric functions in equations, how do you select Degrees or Radians?

example

arcsin (1/7) = 8,2132107017381887890349494802602 degrees

arcsin (1/7) = 0,14334756890536535759507428015662 radians

Thanks

Charly

Hello

When you use trigonometric functions in equations, how do you select Degrees or Radians?

example

arcsin (1/7) = 8,2132107017381887890349494802602 degrees

arcsin (1/7) = 0,14334756890536535759507428015662 radians

Thanks

Charly

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

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.

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.