Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Pro\program input string

JPGraphX

New member
I would like to input by txt a string instead of a number..

Pro\program

INPUT
TBNC30HS NUMBER (string there instead of a number)
END

How can i do this?

THanks!
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
 
Dear JP,
Pro/Program is Limited Function only,it is standard.
Why can't you delete the integer parameter and add a new string Parameter.
 

Sponsor

Articles From 3DCAD World

Back
Top