Skip to main content
1-Visitor
March 22, 2017
Solved

Creo programming

  • March 22, 2017
  • 1 reply
  • 2072 views

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?

Best answer by TomU

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

1 reply

TomU23-Emerald IVAnswer
23-Emerald IV
March 22, 2017

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