Ilogic nested list within multi value parameter

Ilogic nested list within multi value parameter

jamie.nelson.cubex
Contributor Contributor
358 Views
2 Replies
Message 1 of 3

Ilogic nested list within multi value parameter

jamie.nelson.cubex
Contributor
Contributor

I am having trouble getting an Ilogic rule to work. I have to change two measurements on a headbox based on the length of another member (this member has two alternatives and the headbox changes size differently based on the member type). 

 

A screenshot of the table is attached. 

 

I have created a Muli Value Parameter for both Screws and Pipes. I think I now need to insert a nested list so that the headbox changes size based on what multi-value is selected and also the length of the member. 

 

0 Likes
359 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant

Hi @jamie.nelson.cubex 

 

If I understand correctly you would use the "SetList" method to update the Screws and Pipes lists on the fly.


See this example where a parameter called Color is used to update the lists called Name and Size.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

If Color = "Red" Then
	MultiValue.SetList("Size", 0.5, 0.75, 0.95, 1.25)
	MultiValue.SetList("Name", "Bob", "Lisa", "Carl", "Sally")
Else If Color = "Green" Then
	MultiValue.SetList("Size", 0.5, 0.75, 0.95)
	MultiValue.SetList("Name", "Bob", "Lisa", "Carl")
Else 
	MultiValue.SetList("Size", 0.5, 0.75)
	MultiValue.SetList("Name", "Bob", "Lisa")
End If

Curtis_W_0-1637606490539.png

Curtis_W_1-1637606508810.png

 

 

 

 

 

EESignature

0 Likes
Message 3 of 3

jamie.nelson.cubex
Contributor
Contributor

Hi @Curtis_Waguespack,

 

I am not quite sure that will solve my issue. I need to be able to select the guide type (Bolt or Pipe) and insert the dimensions (which is not a setlist) . The SO_height dimension changes the size of the headbox. The bigger the SO_height the bigger the headbox, however, the headbox sizes increase at different intervals depending on the fixing type.

 

This is the rule I have created, I know that I can not have "If" statements without an "End If". Can you advised on the correct code?

 

If bolt_or_pipe_fabric_fixing = "Bolt" Then 
	If SO_height <=3500 
	headbox_width = 180
	headbox_height = 180
	
Else If SO_height >3500.01 AndAlso SO_height <5000 
	headbox_width = 200
	headbox_height = 200
	
Else If SO_height<=5000.01 AndAlso SO_height<6500
	headbox_width = 220
	headbox_height = 220

Else If SO_height <=6500.01 AndAlso SO_height <7500
	headbox_width = 240
	headbox_height = 240
	
Else If SO_height <= 7500.01
	MessageBox.Show("Pipe Guides Required At This Size", "Too Large", MessageBoxButtons.OK)
End If

If bolt_or_pipe_fabric_fixing = "Pipe" Then 
	If SO_height <=4500 
	headbox_width = 180
	headbox_height = 180
	
Else If SO_height >4500.01 AndAlso SO_height <6500 
	headbox_width = 200
	headbox_height = 200
	
Else If SO_height <=6500.01 AndAlso SO_height <8000
	headbox_width = 220
	headbox_height = 220
	
Else If SO_height <=8000.01 AndAlso SO_height <10000
	headbox_width = 220
	headbox_height = 220
	
Else If SO_height <= 10000.01
	MessageBox.Show("Curtains Drop Too Large, This Can Not Be Supplied", "Too Large", MessageBoxButtons.OK)
End If	

 

0 Likes