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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Creo programming

SamuelAlexander
1-Newbie

Creo programming

Hi

I have made a layout file and created a parameter.

Now the value of this parameter are varying from 100 to 350.

I have declared this layout in a model and used this parameter in a model, but the problem is the model fails if the value fall below 250.

So I want to enter a relation in such that regeneration of this model stops when this value falls below 250.

How to go about it?

1 ACCEPTED SOLUTION

Accepted Solutions
TomU
23-Emerald IV
(To:SamuelAlexander)

Create a second parameter in you model that actually controls the geometry.  Then create a relation that uses the layout value to drive the local parameter, but only when the layout value is greater than 250.

IF LAYOUT_PARAM >= 250

    LOCAL_PARAM = LAYOUT_PARAM

ELSE

    LOCAL_PARAM = 250

ENDIF

View solution in original post

1 REPLY 1
TomU
23-Emerald IV
(To:SamuelAlexander)

Create a second parameter in you model that actually controls the geometry.  Then create a relation that uses the layout value to drive the local parameter, but only when the layout value is greater than 250.

IF LAYOUT_PARAM >= 250

    LOCAL_PARAM = LAYOUT_PARAM

ELSE

    LOCAL_PARAM = 250

ENDIF

Top Tags