Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Expresiones_that_a_value_returns_three

Status
Not open for further replies.

manu1973

Aerospace
Sep 28, 2020
15
Hello
I would like to know if the following can be done:

I want a numeric value to modify 3 values (3 dimensions)

example:

I call my part washer DIN-125 M_4

Well, that last number "4", I want it to return 3 values

value h = 0.8
value d1 = 4.3
value d2 = 9

I pass you sample pdf
Thank you so much for everything
 
 https://files.engineering.com/getfile.aspx?folder=eaf5defb-65f5-4990-9894-af21e4970b0c&file=Expresiones_that_a_value_returns_three.pdf
Replies continue below

Recommended for you

What you need to do is build a re-use lib for your washers to cover the range
_3
_4
_5
_6
and so on

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX11, Win 10 Pro
 
Hi,
Yes, I know that it can be done as you say, with the reuse library, but I have a problem, with the license I have, I can't use the reuse library, so I have to try to do it in another way, I had thought do it with expressions.
I understand that it can be done, because with programming, everything can be done.

Thank you very much for answering
 
Hello,

You will need some expressions:

A handle exp Ex.: x = 4

A table with all data
ex. Table={{4,0.8,4.3,9},{...}}

In each expression you look in the table you will need a loop formula
Ex. H =
loop {
for $set in Table;
if ((x = nth(1,$set))) Return nth(2,$set);
Return is 0;
}





Gelson Z. Nicoletto
V.18-NX1980
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor