Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Pro/program , string instead of number

Status
Not open for further replies.

JPGraphX

Mechanical
Oct 15, 2010
23
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
 
Replies continue below

Recommended for you

I'm not exactly sure what you are trying to achieve, but try enclosing it in double quotation marks: "TBNC30HS 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
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor