Mutlivalue Issues

Mutlivalue Issues

bronc3buster842001
Advocate Advocate
535 Views
6 Replies
Message 1 of 7

Mutlivalue Issues

bronc3buster842001
Advocate
Advocate

I have a part with 2 multivalue parameters. The first one sets the values for the second one. The second one sets values for two other parameters. So if I select Voltage = 100 and Capacitance = 0.1 uF then try to select Vlotage = 6.3 and Capacitance = 47 uF the other two values dont update.

 

Attached or the part file and excel sheet.

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

william
Advocate
Advocate

Is this what you are after? 

0 Likes
Message 3 of 7

bronc3buster842001
Advocate
Advocate

No. Want to keep in with the rules as to be a configurable part

0 Likes
Message 4 of 7

william
Advocate
Advocate

Maybe I misunderstood your request then. 

I thought that if you change the voltage then you want the multi-value parameter capacitance to update with the defined ranges in the spreadsheet, then you also want the length and diameter parameters to update from the capacitance parameter. 

Did I get this wrong? 

 

0 Likes
Message 5 of 7

bronc3buster842001
Advocate
Advocate

Yes I want the diameter and length to update. But as it is now, they dont update until I select a capacitance value. When they dont update it causes the text to lose reference and overlap each other

0 Likes
Message 6 of 7

GeertvanderHeide
Advocate
Advocate

GeertvanderHeide_0-1671522617943.png

when you set predefined buttons to none a change in value should trigger dependant rules immediatly. 

i do however recognize your problem with a delay in value change. sometimes is works when you try to acces parameter.param("Voltage").value which acts a bit different in some situations.

i have a code that acts similar to this situation. there i have a seperate rule to update the mulitvalue list values:

 

if Voltage <> Voltage then

Capacitancelist =MultiValue.List("Capacitancelist ").Item(0)

end if

 but this is just to reset the second mulitvalue. when you use this the capacitance will always jump to the first value after you change the voltage

0 Likes
Message 7 of 7

bronc3buster842001
Advocate
Advocate

If i manually regenerate the rule after changes everything works fine.

 

 

That works. I had to add one line. But still not perfect. I still have to change the capacitance to update the txt emboss

 

InventorVb.DocumentUpdate()

 

0 Likes