iLogic ask to choose from list of ID based on OD of tube in Description.

iLogic ask to choose from list of ID based on OD of tube in Description.

Saqib.Iqbal
Enthusiast Enthusiast
491 Views
1 Reply
Message 1 of 2

iLogic ask to choose from list of ID based on OD of tube in Description.

Saqib.Iqbal
Enthusiast
Enthusiast

I am trying to make ilogic which read the tube size from description and based on that, it ask user to choose from the available sizes.

 

As you can see in attached picture that each OD size have different # of ID sizes available.

 

So what i would like to have is that when i run the rule, it read the description (which is working perfect) and then based on what code reads, pop up as list of available sizes to choose from for the user.

 

Any help would be appreciated.

 

Thank you.

0 Likes
Accepted solutions (1)
492 Views
1 Reply
Reply (1)
Message 2 of 2

Saqib.Iqbal
Enthusiast
Enthusiast
Accepted solution

I did some googling and read through Inventor API help and following is the code which works good for me. i know i have to make arraylist for each OD size in this case.

 

 

SyntaxEditor Code Snippet

	Dim oSize125 As New ArrayList
	oSize125.Add("0.049")
	oSize125.Add("0.095")
	oSize125.Add("0.120")

	Dim oV As String

	oV = InputListBox("Available ID Sizes", oSize125, oSize125, Title := "Available Sizes for OD", ListName := "Please choose one of the following available ID sizes for OD        .")

	oContents(1) = "1.250 X " & oV & " J524"
0 Likes