Input list box

Input list box

tomislav.peran
Advocate Advocate
412 Views
2 Replies
Message 1 of 3

Input list box

tomislav.peran
Advocate
Advocate

Hello,

 

In order to use Select Case option in the code, firstly I need to choose which case I wish to use.

 

d0 = InputListBox("Prompt", MultiValue.List("d0"), d0, Title := "Title", ListName := "List")

I use a user parameter to make a list of options/cases for that.

 

However, these user parameters have sometimes no use outside a single rule. 

 

Would it be possible to make a local multivalue parameter that only exists within that rule and not as a user rule in

the document? 

 

Tom

 

0 Likes
Accepted solutions (1)
413 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

Hi @tomislav.peran.  You could make your own list within the rule itself, if all you need is some options in a list to be able to use an InputListBox.  Below is a simple example of this:

Dim oOptions As New List(Of String)
oOptions.Add("Option 1")
oOptions.Add("Option 2")
oOptions.Add("Option 3")
oOptions.Add("Option 4")

Dim oChosenOption As String = InputListBox("Choose One.", oOptions, "", "OPTIONS", "List of Options")

MsgBox("You chose '" & oChosenOption & "' from the list.", vbInformation, "iLogic")

If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 3

tomislav.peran
Advocate
Advocate

Hi WCrihfield,

 

Ah great. I really do not want to have user parameters for cases used in a single rule.

 

Thank you a lot!

 

Tom

 

 

0 Likes