- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found that if I separate the component.active code from the this.bom code into separate IF Statements it does a better job at updating the BOM quantities.
'Clamp 48>ID<=60
ElseIf (60>=O_COLLAR2 And O_COLLAR2>48) Then
If (10>=VARIABLE_8 And VARIABLE_8>8.25) Then
Component.IsActive("11000138") = True
'quantity = ThisBOM.CalculateQuantity("Model Data", "11000138")
'ThisBOM.OverrideQuantity("Model Data","11000138", 5)
ElseIf (12>=VARIABLE_8 And VARIABLE_8>10) Then
Component.IsActive("11000071") = True
'quantity = ThisBOM.CalculateQuantity("Model Data", "11000071")
'ThisBOM.OverrideQuantity("Model Data","11000071", 5)
End If
End If
End If
'Clamp 48>ID<=60
ElseIf (60>=O_COLLAR2 And O_COLLAR2>48) Then
If (10>=VARIABLE_8 And VARIABLE_8>8.25) Then
ThisBOM.OverrideQuantity("Model Data","11000138", 5)
ElseIf (12>=VARIABLE_8 And VARIABLE_8>10) Then
ThisBOM.OverrideQuantity("Model Data","11000071", 5)
End If
End If
End If