ilogic user parameters need help

ilogic user parameters need help

skyngu
Collaborator Collaborator
614 Views
2 Replies
Message 1 of 3

ilogic user parameters need help

skyngu
Collaborator
Collaborator

hi,

 

i want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:

 

if condition A then

multivalue.setlist("length", 1,2,3,4,5)

else

(users can enter any value they want, how can i remove the list first and set it to custom value input?)

end fi

 

thanks

 

spec 2011 sp2 & windwo 7 64bit

 

 

Autodesk Inventor Professional 2019
0 Likes
Accepted solutions (1)
615 Views
2 Replies
Replies (2)
Message 2 of 3

MjDeck
Autodesk
Autodesk
Accepted solution

Here's a rule that will do it:

' ___________

MultiValue.SetValueOptions(True)
If (condition = "A") Then
 MultiValue.SetList("length", 1,2,3,4,5)
Else
  MultiValue.List("length") = Nothing
End If

' __________

With the SetValueOptions statement as shown, when you make the SetList call the parameter will be automatically changed (if a change is required) to the value in the list that is closest to its current value.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 3

skyngu
Collaborator
Collaborator

oh, that is ez. set it to "nohting"

thanks

Autodesk Inventor Professional 2019
0 Likes