Message 1 of 3

Not applicable
12-28-2010
11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is not my day for iLogic, it seems.
I'm trying to suppress a hole feature based off of a reference parameter value, after setting the size of a model parameter. The problem is the reference parameter doesn't update during the rule.
Open the attached part file (Inventor 2010 format) and use the iTrigger button to run the rule.
Select 200 from the list to set the width.
The rule contains an if, then to set the hole supression:
trigger = iTrigger0 Width= InputListBox("Enter Width", MultiValue.List("Standard_Widths"), Standard_Widths, Title := "Widths", ListName := "Available Standard Widths") Parameter.UpdateAfterChange = True RuleParametersOutput() InventorVb.DocumentUpdate() if Center_Hole_Space >= 80 then Feature.IsActive("Hole2") = True Else Feature.IsActive("Hole2") = False End if iLogicVb.UpdateWhenDone = True 'display for test MessageBox.Show("Center_Hole_Space = " & Center_Hole_Space, "Test")
But the Center_Hole_Space parameter is always one step behind when switching sizes.
Any thoughts?
P.S. I've tried adding these one at a time or in combo with no luck:
Parameter.UpdateAfterChange = True
RuleParametersOutput()
InventorVb.DocumentUpdate()
Solved! Go to Solution.