×
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

How To: Add a variable to design table that can be used in equations.

How To: Add a variable to design table that can be used in equations.

How To: Add a variable to design table that can be used in equations.

(OP)
My end goal is to add a variable in a design table that I can use in equations.  The variable itself should not be in any sketch, as it's just a number (87%, 2.5, etc.).  If I could find a way to insert global variables in the design table, then that would fix my problem, but it doesn't seem possible.

RE: How To: Add a variable to design table that can be used in equations.

Apart from how it's done, you will probably end up having to rebuild the part twice after every time, one time to propagate the DT value to the equation, the next rebuild to propagate the equation value to the model property.

Stefan Hamminga
EngIT Solutions
CSWP/Mechanical designer
Searching Eng-Tips forums

RE: How To: Add a variable to design table that can be used in equations.

I don't believe a DT can directly populate an Equation. The only way I know, to do what you want, is to use a sketch element to represent the value.

e.g. A line of .87" long could be used in an equation to calculate 87% of a value.

As Stefan pointed out, the rebuilding could end up being a PITA.

cheers

RE: How To: Add a variable to design table that can be used in equations.

I don't believe an equation can reference anything other than dimension values or global/linked variables.  However, since you're already using a design table, you may as well use Excel to your advantage.  For example, let's say you want to apply the equation "D1@Sketch2" = K * "D1@Sketch", where K varies for each configuration.  You'll need 3 columns ($PRP@K, D1@Sketch1, D2@Sketch1) + 1 column for the config name. In the D2 column enter an Excel formula that does the same calculation as the SW equation (D#=B#*C#, where # is the row number).

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