Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia V5 setting list of parameter values from a reaction?

Status
Not open for further replies.

greg21

New member
Feb 18, 2003
7
0
0
GB
Hi All,

I'd like some help if possible.

I have 2 parameters both with Multiple values.

I would like to set the multiple value content of the second parameter to be dependant on the selection of the first.

i.e.
If the Parameter 1 = "A"
Parameter 2 multiple value list should be 1A, 1B, 1C,
If parameter 1 ="B"
Parameter 2 multiple value list should be 2A, 2B, 2C,

If it makes any difference these are all string values.

Parameter 1 will have 3 options and the number of vules for Parameter 2 will vary.

Thanks in Advance.

Greg
 
Replies continue below

Recommended for you

Thank you I hadn't seen that previously it looks interesting but possible a little to indepth for the problem I'm trying to solve. I'm not fully clued up on VBA at the momoent.

Greg
 
reaction use EKL as language... the EKL script to change possible values of a parameter based on the value of another should not take long with the info available on Maher's blog.

Are you using VB Script action and not knowledge action ?

Code:
let myPointer(valuepointer)

set myPointer = String.2 

let stringParam (string)
stringParam = String.1 

myPointer.AuthorizedValues =List(stringParam+"1", stringParam+"2", stringParam+"3")

myPointer.Value = myPointer.AuthorizedValues->GetItem(1)

EKL_change_parameter_kwilur.gif



Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.
Back
Top