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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

IF Diameter

wfalco
15-Moonstone

IF Diameter

Is it possible to add a temp relation that says IF a diameter = 5.18,
then make it = 5.00? Gotta lotta holes to change and thought maybe I
could change them in one fell swoop.
4 REPLIES 4
TomU
23-Emerald IV
(To:wfalco)

Are these all in one model, or many models?

Exact syntax for one diameter is this (replace DIAMETER with the dimension name):

IF DIAMETER == 5.18
DIAMETER = 5.00
ENDIF

Tom U.
wfalco
15-Moonstone
(To:wfalco)

Sounds good.

I tried and get this...

IF DIAMETER == 5.18
errorInvalid symbol 'DIAMETER' found.
DIAMETER = 5.00
ENDIF


BenLoosli
23-Emerald II
(To:wfalco)

Replace DIAMETER with the parameter that is originally driving the diameter dimension.

IF p254 == 5.18
P254=5.00
Endif

If all of the holes are in a pattern then this should work, but 1 edit to the master hole will do the same thing.
If your holes are defined independently, then nothing will work, unless you have changed them to use a defined parameter for the diameter.

Thank you,

Ben H. Loosli
USEC, INC.

You could try using Edit Program, which opens in a text editor, and replace 5.18 with 5.00. If there are no dimensions at 5.18 that you want to preserve, just to a mass replace.


In Creo2 it's:


Tools > Model Intent > Program > Edit Design


(Warning, if it's an assembly, you'll need Advanced Assembly to use this.)



In Reply to Wayne Falco:


Is it possible to add a temp relation that says IF a diameter = 5.18,
then make it = 5.00? Gotta lotta holes to change and thought maybe I
could change them in one fell swoop.
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags