Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic user parameters need help

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
skyngu
515 Views, 2 Replies

ilogic user parameters need help

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
2 REPLIES 2
Message 2 of 3
MjDeck
in reply to: skyngu

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.

Message 3 of 3
skyngu
in reply to: MjDeck

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

thanks

Autodesk Inventor Professional 2019

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report