Dimension of parameter being fixed when using I-logic

Dimension of parameter being fixed when using I-logic

gjsdn3411
Explorer Explorer
135 Views
1 Reply
Message 1 of 2

Dimension of parameter being fixed when using I-logic

gjsdn3411
Explorer
Explorer
If Hole1 = 40 mm   Then
MultiValue.SetList("Length1", "60mm", "65 mm", "90mm")
Length1 = 60 mm
MultiValue.SetList("Length2", "60mm", "65 mm", "90mm")
Length2 = 60 mm

When I use this code, when hole 1 = 40mm, length 1, 2 are fixed to 60mm, so I can't change the dimensions in the parameter window. Is there a way to make it so that when length 1, 2 are changed in the parameter window, the i-logic rule also changes and is updated?

0 Likes
136 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

What do you mean by the phrase "the i-logic rule also changes and is updated"?  Are you talking about the actual contents of the iLogic rule changing when you change the value of a parameter?  If so, then how would you want the rule to be changed?  It is possible to edit the contents of one iLogic rule from another iLogic rule, but an iLogic rule can not edit or change itself.

The way your rule is right now, every time the value of any of those 3 parameters would change, that would trigger that rule to run, which would then change their values once again, if the one condition is met.  If you do not want the rule to get ran when the values of the 'Length1' & 'Length2' parameters change, then you will need to change how you are using them to something more like:

Parameter("Length1") = 60 mm

Parameter("Length2") = 60 mm

...instead of just the unquoted, blue parameter name.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes