cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

pro-program

G.senthilnathan
1-Newbie

pro-program

Hi friends, I interested to learn pro-program.if any one of them having good tutorial with example please send for me. Thanks, senthilnathan.G[/quote]
6 REPLIES 6

"G.senthilnathan Gnanaguru" wrote:

Hi friends, I interested to learn pro-program.if any one of them having good tutorial with example please send for me. Thanks, senthilnathan.G

You should be able to get large amount of information from Pro/E Help section. Try searching Pro/program in the help section you will have more things to read and learn. -Chander.

There is some information about this in the forum, lookup for it carefully. You may need to get an advanced pro/e book. This subsject is not taken under cosideration properly in neither sites nor manuals. So be patiente finding it. anyway the basics. *Access pro/program through Tools-Program *Declare parameters in three diferent kind at the INPUT END INPUT statement, example: parameter_1 number paramenter_2 string paramenter_3 yes_no Use those parameters values (or dimensions) to force suppres or resume fetures (in part files) or components (in assemblies) using IF ENDIF statement, enclosing the feature or component information at the program with the IF and ENDIF, example: IF PARAMETER_1 == 25 ADD PART.... ENDIF IF PARAMETER_2 == (WHATEVER THE VALUE IS) ADD PART.... ENDIF same with an yes_no parameters Things you must be aware of: *String parameters values must be used inside (), they are case sensitive *You can combine several IF statements in levels or with AND and OR connectors (& and | respectively) *For every IF there must be an ENDIF Dealing with pro/program is a little tricky, if you only want to declare paramenters to assign them different values every time you regent the file, you'll get a prompt line asking you for the value for every parameter declared. Some tips for the moments, hope they can help

A little more general info to add to what Claudio has said. To get your first overview open a fairly simple model and select Tools>Program>Show Design. You will see that every Part or Assembly you create has this concise summary of the model already created and available to you for manipulation. Notice next that there are 4 sections: INPUT, RELATIONS, Main Body of "ADD's", & MASSPROP. Forget about MASSPROP for the moment; it is a lesser used section. Notice that both INPUT and RELATIONS sections are empty; that's because you haven't done any programming yet. Also notice that the complete description of a Feature or Component is enclosed between an "ADD ..." line and an "END ADD" line. To try something simple, do Edit Design next time and set up a simple yes_no parameter called ADD_HOLE. Between the INPUT line and the END INPUT line add this line: ADD_HOLE YES_NO. Now find a section in your program for the addition of a hole feature. Immediately before the line which starts ADD FEATURE ... add the line: IF ADD_HOLE==YES, then scroll down below the END ADD line for the feature and add the line: ENDIF. Now you have programmed your model to allow two states, with and without a particular hole. If you start using the other parameter types you can really do some interesting things: change sizes, number of features in a pattern, swap out alternative Features and Parts, etc. Glad to give you some more hints after you've gotten familiar with the basics. David

Thank yo very much i will try it.... see you again

Thanks
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.