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

conditional value selection for restricted parameters

DilipVyas
7-Bedrock

conditional value selection for restricted parameters

HI,

 

I want to set condition between two restricted parameters for selection of value to explain sub category of part,

 

for example:

1st parameter "PART_TYPE" with a restricted value ( 'INHOUSE', 'BOUGHTOUT')

 

2nd parameter "CLASS" whith a value ("BED","BRACKET","HOUSING","BEARING","ORING","LM")

 

here I need another restriction on a value of 2nd parameter "CLASS" as follow

 

if "PART_TYPE" = INHOUSE

then permitted value of "CLASS" should be from bed, bracket & housing

 

if "PART_TYPE" = BOUGHTOUT

then permitted value of "CLASS" should be from bearing, oring & lm

 

awaiting for valuable suggestions from all members

 

with kind regards

 

DILIP VYAS


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
4 REPLIES 4

Dear DILIP VYAS,

You've got no correct answer towards this problem yet? I've the same issue.

with kind regards,

Raymond

Raymond,

I think that the solution is >>> create external application, which manages part parameters. You can implement whatever rules in this application.

Martin Hanak


Martin Hanák

Thanks Martin,

I believe that could be a solution. But my experience with an external application is nog so big. So I will trie to find the solution within Creo. Or you have to say how exactly you thought it should be.

Thanks anyway for your reaction.

Raymond

FV
17-Peridot
17-Peridot
(To:DilipVyas)

Hi all,

The programming trick is to use multiple parameters with list values.

The user interaction even in this case is not going to be very intuitive but it is better then nothing...

Your parameters have to be structured like this:

CLASS_INHOUSE , values { 'BED', 'BRACKET', 'HOUSING'}

CLASS_BOUGHTOUT, values {'BEARING', 'ORIG', 'LM'}

The full restricted parameter definition should look like this:

{ Name = CLASS_INHOUSE

  Type = string

Default = 'SELECT FROM CLASS_INHOUSE'

  Enum = { 'BED', 'BRACKET', 'HOUSING'}

},

{ Name = CLASS_BOUGHTOUT

  Type = string

Default = 'SELECT FROM CLASS_BOUGHTOUT'

  Enum =  {'BEARING', 'ORIG', 'LM'}

},

and you would have to set relations, something like this:

if PART_TYPE == "INHOUSE"

CLASS_INHOUSE= "SELECT FROM CLASS_INHOUSE" /* set to default value */

CLASS = CLASS_INHOUSE

else

CLASS_BOUGHOUT = "SELECT FROM CLASS_BOUGHTOUT" /* set to default value */

CLASS = CLASS_BOUGHTOUT

endif

This will allow the CLASS parameter to have a value restricted by PART_TYPE parameter, but the end user would have to make a conscious decision from which list the value is coming from and the initial value of CLASS ( taking the defaults from restricted lists) would point to where the next selection to be made.

HIH.

Feliks.

===========================================================================================================

HI,

I want to set condition between two restricted parameters for selection of value to explain sub category of part,

for example:

1st parameter "PART_TYPE" with a restricted value ( 'INHOUSE', 'BOUGHTOUT')

2nd parameter  "CLASS" whith a value ("BED","BRACKET","HOUSING","BEARING","ORING","LM")

here I need another restriction on a value of 2nd parameter "CLASS" as follow

if  "PART_TYPE" = INHOUSE

then permitted value of "CLASS" should be from bed, bracket & housing

if  "PART_TYPE" = BOUGHTOUT

then permitted value of "CLASS" should be from bearing, oring & lm

awaiting for valuable suggestions from all members

with kind regards

DILIP VYAS

Top Tags