Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

sloth4z

Mechanical
Aug 12, 2003
132
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.
 
Replies continue below

Recommended for you

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
 
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]
 
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).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor