Hi - Im setting up a standard steel plate template file and I was hoping someone could help me with iLogic (as I am useless with it!)
I want to create a rule that will warn the user when the plate thickness they are using is not standard. I have already created a multivalue parameter for plate thickness, which lists all standard steel plate thickness's and also allows for custom values.
I was hoping I could create a rule that would prompt a dialogue box warning when the user creates a custom value for plate thickness.
I know this can be done, but like I said, Im bloody useless with iLogic and find it hard to come across relevent examples and/or tutorials online.
'get the Inventor user name from the Inventor Options
'define an arraylist to hold the list of thicknesses
Dim values As New ArrayList()
'set the list of thickness to the array list
values = MultiValue.List("Edge_Thickness")
'prompt the user for input
oUserInput = InputBox("Enter a thickness", "Current Thickness = " & Edge_Thickness, Edge_Thickness)
'check to see if the Thickness arraylist contains the value input by the user
If Not values.Contains(oUserInput) Then
MessageBox.Show("Hello " & oName & ", this is a custom thickness.", "iLogic")
'set the model parameter to use the input value
Edge_Thickness = oUserInput
'update the model
iLogicVb.UpdateWhenDone = True
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.