×
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!
  • Students Click Here

*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

Jobs

Equations never evaluate

Equations never evaluate

Equations never evaluate

(OP)
Hello.

This is my first week on Solidworks. I have an educational edition (18.5).

I have tried linking dimensions to equations. When I try to set a global variable:

"length" = 60

The equation is marked with a red "!" which i gather means it can't be evaluated.

My goal is to have a structural steel part where I can change the length according to its place in the drawing.

What is wrong?

RE: Equations never evaluate

The equation works fine for me. (SW2011-SP4EV) There is/was no red !

RE: Equations never evaluate

(OP)
Thank you. It still displays a red "!" for me.

RE: Equations never evaluate

(OP)
This shouldn't matter (I checked anyways) since I have the dimension of the extrusion set to "Rail_length" :

"Rail_length" = 20
"D1@Boss-Extrude1" = "Rail_length"

What concerns me is that I can't set any global variables. I have no idea why this could be.

 

RE: Equations never evaluate

Could be a problem with VBA installation.

-handleman, CSWP (The new, easy test)

RE: Equations never evaluate

(OP)
Hmm. I have uninstalled and reinstalled Solidworks. There were no errors. How would I know if there is an error with VBA installation? I have read the attache thread. It isn't really the same behavoir.

RE: Equations never evaluate

From handleman's link;

Quote:

What happens if you enter this into a dimension (not an equation):

iif(1,5,10)

RE: Equations never evaluate

(OP)
If I put the iif(1,5,10) statement in direction D1 of the extrude feature it evaluates to 5.

RE: Equations never evaluate

Can you post a Screenshot of your "Equations" window?

Devon Murray, EIT [Mechanical]
Solidworks 2011 SP 2.0

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!


Resources