Hi @chris
I'm not really sure the reason why you're seeing the results you're seeing. My guess that another rule was running was wrong though.
I removed the triggers and isolated things as best I could, but still saw the issue.
I've seen this before though, and in fact I had a customer who had a very similar issue just recently.
In his case, and in yours we can fix it by just adding a loop for the part of the code that needs to run 2x.
It's not the most elegant solution, but it gets the job done.
I think you can remove the triggers if using this version of the rule.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
iLogicVb.UpdateWhenDone = True
'Rise_Run
If Rise = "6.5" Then
Parameter("Run") = 11
ElseIf Rise = "6.75" Then
Parameter("Run") = 10.75
ElseIf Rise = "7" Then
Parameter("Run") = 10.5
ElseIf Rise = "7.25" Then
Parameter("Run") = 10.25
ElseIf Rise = "7.5" Then
Parameter("Run") = 10
ElseIf Rise = "7.75" Then
Parameter("Run") = 9.75
ElseIf Rise = "8" Then
Parameter("Run") = 9.5
ElseIf Rise = "8.25" Then
Parameter("Run") = 9.25
ElseIf Rise = "8.5" Then
Parameter("Run") = 9
ElseIf Rise = "8.75" Then
Parameter("Run") = 8.75
ElseIf Rise = "9" Then
Parameter("Run") = 8.5
ElseIf Rise = "9.25" Then
Parameter("Run") = 8.25
ElseIf Rise = "9.5" Then
Parameter("Run") = 8
End If
For i = 1 To 2
'Stair Type
If Stair_Type = "Floor To Platform" Then
Parameter("d67") = Parameter("TMSW")
Parameter("d72") = Parameter("Height")
ElseIf Stair_Type = "Platform To Platform" Then
Parameter("d67") = Parameter("d68")
Parameter("d72") = Parameter("Height") + Parameter("d74")
End If
InventorVb.DocumentUpdate()
Next
'Array Count
iCount = Ceil(Height / Rise)
TrdS = Height / iCount
TrdC = iCount
iCountFP = Floor(d99 / RRAL)
TrdSFP = d99 / iCountFP
TrdCFP = iCountFP
iCountPP = Floor(d78 / RRAL)
TrdSPP = d78 / iCountPP
TrdCPP = iCountPP
icountVert = Ceil(d260 / OSHA_VO)
VertS = (d260 - (RVO * 2)) / icountVert
VertC = icountVert
'NOTs = Math.Floor(d78 / RRAL)
'NOTsO = (NOTs * Rise) -d97
'If NOTsO <= 4 Then
'TrdCF = NOTs
'ElseIf NOTsO > 4 Then
'TrdCF = NOTs
'End If
If Run_TF = True Then
isnot_Run = False
Else
isnot_Run = True
End If
