×
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

Parameter from relation

Parameter from relation

Parameter from relation

(OP)
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

RE: Parameter from relation

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

RE: Parameter from relation

(OP)
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?

RE: Parameter from relation

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

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