Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Parameter from relation

Status
Not open for further replies.

smocken

Mechanical
Nov 12, 2012
2
Hi.

How to create relation to add á components dimension to one paramter like below.

Parameter_SIZE: Length(D1) x Width(d2) x Height(d3)

Example in paramter field:
30x20x5
 
Replies continue below

Recommended for you

You will need a complex relation that usues the istr function, Integer to String.
You will need to convert each parameter to a string, then build your final string to put it back together.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Hi and thanks.

In relation i thought this shuóuld work esealy. "x" is text only
Parameter_SIZE=d1 x d2 x d3

I now how to do it width more parameters but i did think is could be done with only one paramter.

Can ju give me an example with istr function?
 
I had the function wrong, it is ITOS.
Parameter Length = 5.5 this code will set Title_2_2 to 'X 5.5 LONG'
Parameter Length = 3.0 this code will set Title_2_2 to 'X 3 LONG'


IF LENGTH - FLOOR(LENGTH) == 0
TITLE_2_LEN = "0"
ELSE
TITLE_2_LEN = ITOS((LENGTH - FLOOR(LENGTH))*10)
ENDIF

TITLE_2_2 = " X " + ITOS(FLOOR(LENGTH)) + "." + TITLE_2_LEN + " LONG "


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor