MultiValue Parameter does'nt update

MultiValue Parameter does'nt update

mk92
Collaborator Collaborator
484 Views
6 Replies
Message 1 of 7

MultiValue Parameter does'nt update

mk92
Collaborator
Collaborator

Hello

 

I use:

MultiValue.SetList("XYZ", X+Y)

 

To set a Value in a MultiValue List. And i give the user the function to add a custom value.

 

My problem is, the code adds the new value in the list, but it keeps the old value active! Is there a way to update directy to ne new value if X or Y changes?

0 Likes
485 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Hi mk92 🙂

 

show all your rule!

0 Likes
Message 3 of 7

mk92
Collaborator
Collaborator

Hi,

 

this is it!

 

The Assembly has three parameters Length, Width, and lets call it X. X is a MultiValue List which has one value in it plus the function for the user to add a custom value. The standard has got a value which is calculated in the rule.

 

MultiValue.SetList("X", Length+Width)

 

But to give the user the possibility to change the standard value they have the option to add a custom value!

 

When the length or width changes the value in the list should change automaticly an update the assembly. But it keeps the old value and adds the new as a second one! The old ones keeps active!

 

I want to activate the new one 😉 

0 Likes
Message 4 of 7

Anonymous
Not applicable

Sorry frnech Canadian guy here 😉

 

I dont no if i understand perfectly lol, but i try 🙂

 

try this rule

 

If Parameter("X") <> LENGHT + WIDHT Then
Parameter("X") = "YOUR VALUE"
End If

 

And add your Rule in a Event Triggers at "Any Model Parameter Change"

 

 

I hope i help you lol

 

 
0 Likes
Message 5 of 7

mk92
Collaborator
Collaborator

I think this does'nt work for me bacause when the user adds a custom value your rule changes this value?

 

The value should not be added in the code by the user! It should be entered in the parameter window !

0 Likes
Message 6 of 7

mk92
Collaborator
Collaborator

Nobody? Any Idea? Or any other way to do this?

0 Likes
Message 7 of 7

Anonymous
Not applicable

Hi sorry for the long time reply, i dont receive your reply by mail, send your iam and i try to help you again!

0 Likes