×
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

Global Variable in Equation
2

Global Variable in Equation

Global Variable in Equation

(OP)
To tryout Global variables, I am adding a equation to a dimension in sketch.

LENGTH = 1
"D1@Sketch1" = LENGTH

SW says incorrect syntax.
Whats wrong here?

RE: Global Variable in Equation

2
LENGTH = 1
"D1@Sketch1" = "LENGTH"

You need the quote marks around the GV.

RE: Global Variable in Equation

(OP)
Thanks CBL. Was also looking to see a list of logical operators that we can use in a equation too. Per the list from help, I cant see any syntax for the AND, OR, LIKE expressions. any body use this?
 

RE: Global Variable in Equation

(OP)
CBL, Here is a for you
 

RE: Global Variable in Equation

FWIW, you can also use something like this:
  "SurfaceArea" = Part.Extension.CreateMassProperty.SurfaceArea

I got that somewhere digging through this board way back when.  Just be careful, it's apparently always metric.

RE: Global Variable in Equation

gopack13:
What you have there is VBA.  You can put any valid single line of VBA into an equation.   

-handleman, CSWP (The new, easy test)

RE: Global Variable in Equation

(OP)
Good piece of info guys. Thankx.

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