×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Trig equations in sketcher not evaluating properly

Trig equations in sketcher not evaluating properly

Trig equations in sketcher not evaluating properly

(OP)


My problem is that I am inputing a simple trig function into sketcher, and it evaluates fine.

when I make it an equation (so others can see the function) it evaluates to near zero, which is obviously not correct. I have shown this in the photos...

I am new to Solidworks (7 months) so it is probable I am missing something...

Solidworks 2021 SP5.1
Replies continue below

Recommended for you

RE: Trig equations in sketcher not evaluating properly

Your example is showing the same calculation result that the OP is saying is erroneous. i.e. why is the inverse tangent of 0.03125rad returning 0.03 and not 1.79 degrees?

RE: Trig equations in sketcher not evaluating properly

What in the actual heck do you mean by the arctangent of 1/32rad? You can't find the arctangent of an angle.

However, the way that SolidWorks is ATTEMPTING to interpret your PEBCAK is by first translating your specified value of 1/32rad into the units specified in "Angular equation units" at the bottom of the equations box. So, the value (one divided by thirty two radians) becomes (one dividied by 1833.46 degrees). Why? Because 32rad=1833.46degrees.

Please note that the way SW evaluates units, 1/32rad does NOT mean one thirty-second of a radian. Units are stuck to the actual number they are attached to before the rest of the evaluations happen. If any unit conversions need to happen, they happen to the digits attached to the unit prior to evaluating any math. If you wish to specify the value (1/32)rad, you must either use 1rad/32 or 0.03125rad Now you're asking SW for the arctangent of 1/1833.46 inverse degrees. SW says "WTF does this even mean? I'm going to ignore whatever inverse degrees are supposed to be." And it tells you the arctangent of 1/1833.46. Which is 0.03something degrees.

Why does it work when you just type the value straight into the dimension rather than making it an equation? Because SW ignores your error sooner. Because you're not passing through the actual Equations processing method, SW just tries to evaluate atn(1/32rad) without trying to change your radians into degrees first. So it says "WTF is an inverse radian? I'll just ignore that part." And it gives you the arctangent of 1/32.

It may seem a little backward at first, but performing the unit conversion first before any math is done is just the way it works. Probably easier to program. SW is a solid modeling program after all, not Mathematica.

RE: Trig equations in sketcher not evaluating properly

(OP)
yes, the problem all along was the units - I don't know what I was thinking...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close