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 tutorial

hi Garrysharma,


Here is a pro/program WF2.0 that i got from ptc..hope it helps....


2006-03-28_020237_program.zip


Jay
smiley2.gif
 
Hi Jay,


Thank you very much for sharing Pro-Program Tutorial with us.


Hi manley,


Pro-Program cab be used anywhere in Solid, Sheetmetal, Surfaces., Assembly etc.


Basically Pro-Programis like a dynamic family table, where a simple BASIC-like program prompts the user for inputs, then drives the design. The inputs can be numbers, strings, or yes/no parameters, and can drive dimensions directly (What is the length of the box?) or alter geometry through if-then-else loops (Do you want the hole?). The model is displayed as its information structure, with each feature in a block of text. If a loop is placed around the text, this feature can be turned on or off depending upon the requirements.


For Example:-VERSION
REVNUM 1020
LISTING FOR PART RELATE1</PRE>INPUT
END INPUT</PRE>
RELATIONS
D52 = 360/p0
CIRCLE1=(DISC_OD/2)-1
CIRCLE2=(DISC_OD/2)-2
CIRCLE 3=(DISC_OD/2)-3
END RELATIONS
</PRE> ADD FEATURE (initial number 1)
INTERNAL FEATURE ID 1
TYPE = DATUM PLANE
NAME = DTM1
</PRE> FEATURE IS IN LAYER(S) :
ALL_FEAT - OPERATION = NORMAL
DTM_PLNS - OPERATION = NORMAL
END ADD
........
.....
...
..
</PRE>
You can edit this program to add logic that will add or notadd features based on IF statement evaluations. You can also add mathematical computations, interactive prompts to get information from the user, etc. Whenever the part or assembly that defines the program regenerates, the program is automatically run.
Please refer the Zip file containing the Pro-Program Tutorial which was uploaded by JAY.
 

Sponsor

Articles From 3DCAD World

Back
Top