Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
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
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
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