change between multi list in iLogic Forms and Rules

change between multi list in iLogic Forms and Rules

Anonymous
Not applicable
446 Views
3 Replies
Message 1 of 4

change between multi list in iLogic Forms and Rules

Anonymous
Not applicable

I'm trying get a sheet metal template to work for bending round bar.
I'm looking for a rule and form that changes when you pick the material and then the thickness.
unfortunately the material diameter is different for round bar as it is for bright bar and Stainless Steel
my form needs to pick a material and then changes between the diameter list based on the material selection.

0 Likes
447 Views
3 Replies
Replies (3)
Message 2 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Please provide non confidential data and reproducible steps with images to explain the requirement.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 4

J-Camper
Advisor
Advisor

I have done something similar before for drawer slides.  The user picks the brand, hit apply button in form to run the rule for switching lists, then can select from the updated list:

'Setting list
If slBrand = "~Custom"
MultiValue.SetList("slType", "N/A")
slType = "N/A"
Else If slBrand = "Fulterer"
MultiValue.SetList("slType", "FR 5001.ECD", "FR 5050.ECD", "FR 5210.ECD", "FR 5210", "FR 5609.ECD")
Else If slBrand = "Accuride"
MultiValue.SetList("slType", "3135", "3832", "3640")
End If

slBrand and slType are User Parameters within the document where the local rule exists.

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous 

 

MultiValue.List will only set the list of values on the parameter. To also change the parameter value itself, add this line before the call to MultiValue.List:

MultiValue.SetValueOptions(True)

For reference, go through below forum discussion link.

 

https://forums.autodesk.com/t5/inventor-forum/multi-value-lists-selection-with-form-does-not-store-as/td-p/8810532

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes