Pro/Program can be used in a variety of ways. In this tip we will explore using it to create added flexibility to your designs. For basic information regarding the ProProgram functionality in Creo Elements Pro and getting started with Pro/Program follow this link.
In this example we will demonstrate regenerating a bent model with a corner radius to a straight/linear model.
Step 1:
Create a sketch with 2 lines at an angle to each other.
Step 2:
Extrude a Surface through the sketch.
Step 3:
Create a Round on the corner of the surface.
Step 4:
Create an Intersect curve referencing the datum plane and the extruded surface feature.
Step 5:
Hide the extruded surface and sweep the desired geometry along the Intersect created curve.
Step 6:
Editing the Program
- Choose Tools/Program/Edit Design.
- In the editer that the design list is opened in scroll down to the round feature that was created in the model.
- On the line above the “Add Feature” line, type “IF d3 < 179”. Note: (or the name of the angle dim on the first curve created in the process, if yours is not d3)
- Then, type “END IF” after the END ADD statement line for the round feature
This tells Creo to add the round feature if the angle is specified some value less than 179, otherwise don’t regenerate the round or remove it from the design. This results in creating the sweep feature along a straight trajectory.
- Save and close the file from Notepad
- Answer “Yes” to incorporate the changes into the model
- TRY IT OUT! Change the angle dimension to 180.
This is one simple example for using Pro/Program to make your designs more flexible. See if you can extrapolate from here and use it in others ways.