×
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

Pro/program , string instead of number

Pro/program , string instead of number

Pro/program , string instead of number

(OP)
I would like to input by txt a string instead of a number..

Pro\program

INPUT
TBNC30HS NUMBER
END

How can i do this?

THanks!
JP

RE: Pro/program , string instead of number

I'm not exactly sure what you are trying to achieve, but try enclosing it in double quotation marks: "TBNC30HS NUMBER"

RE: Pro/program , string instead of number

Hi JP,

You can use booleans, strings and numbers for your input parameters:

For example:
INPUT
 ADD_HOLE YES_NO
 HOLE_DIAMETER NUMBER
 NAME_OF_PART STRING
END INPUT

RELATIONS
 IF ADD_HOLE == YES
  /* DO SOME CALCULATIONS
 ENDIF
 IF NAME_OF_PART == "TBNC30HS"
  /* DO SOME OTHER CALCULATIONS
 ENDIF
END RELATIONS

RE: Pro/program , string instead of number

(OP)
Thanks TeunHam for your tips, it's cool.

What I want is find a way to rename all my assembly, piece by piece with a trail file. Is it possible ? I tought I could copy/paste the parameter to rename the beginning of my file but it doesn't work.

Rename:
shipshaw_p1_r1_0  ->   wanapum_p1_r1_0
shipshaw_p2_r1_0  ->   wanapum_p2_r1_0

I have about 40 parts.

Thanks!
JP

RE: Pro/program , string instead of number

The fastest way would be to do a file -> Save As, and us the rename by template

*shipshaw* in the first box and *wanapum* in the second

You can then delete the other files.

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