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.

read input file?

munchichee

New member
Anyone know how to setup a txt input file so that you can tell proe to "read from file" when you regen? We used to use this method at my last job because they had so many pre-defined parameters but I never actually set one up from scratch.
 
just list out all ofthe inputs in the input portion of your program, something like this


COMPANY= "PTC"
EMPLOYEES= 31
MATERIAL= "STEEL"
VOLUME = 2.34


save as a text file and when you read in the file make sure it is in your working directory and type out the full file name xxxx.txt to run it.
 
Correction





just list out all ofthe inputsFROM the input portion of your program, something like this.....
 
I don't have a program setup though - I meant literally from scratch. I know what to do in the actual file itself, but how do you setup pro/e to read from it?
Edited by: munchichee
 
go to tools->program->edit design(i think is the name). Then in the input section of the program add all the variables that are in your input file like the following:


COMPANY STRING
EMPOLYEES INTEGER
MATERIAL STRING
VOLUME NUMBER


and so on.


once youve created the inputs in your program the next time the part will regenerate it will ask for those inputs, at that point you can read them in as a file.
 
ok thanks. i was doing that in assembly mode but it would never save what I put in the input section - does this only work for a part?
 

Sponsor

Back
Top