Dear Justin,
I got it that i should use the Null function. But i dont know how to use it. My rule is as following.
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 57929 StartFragment: 314 EndFragment: 57897 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet
'General Rule
If (CompCode = "SFF040" Or CompCode = "SFF050") And DomeType = "Enlarged" Then
MessageBox.Show("Enlarged Dome Type is not available for SFF040 & SFF050", "Enlarged Dome Type")
DomeType = "Standard"
End If
If CompCode = "SFF030" Then
MessageBox.Show("SFF030 is not available at this time", "SFF030 Not Available")
CompCode = "SFF040"
End If
'Dome Type Based Rules
If DomeType = "Standard" Then
i = GoExcel.FindRow("3rd Party:Embedding 2", "Standard Dome", "Comp. code", "=", CompCode)
D1int = GoExcel.CurrentRowValue("D1int")
D2int = GoExcel.CurrentRowValue("D2int")
D3int = GoExcel.CurrentRowValue("D3int")
D4int = GoExcel.CurrentRowValue("D4int")
D5 = GoExcel.CurrentRowValue("D5")
D6 = GoExcel.CurrentRowValue("D6")
'Parameter("Main Skeleton:1", "H") = GoExcel.CurrentRowValue("H")
H1 = GoExcel.CurrentRowValue("H1")
H2 = GoExcel.CurrentRowValue("H2")
'H3 = GoExcel.CurrentRowValue("H3")
H4 = GoExcel.CurrentRowValue("H4")
H5 = GoExcel.CurrentRowValue("H5")
H6 = GoExcel.CurrentRowValue("H6")
H7 = GoExcel.CurrentRowValue("H7")
L1 = GoExcel.CurrentRowValue("L1")
L2 = GoExcel.CurrentRowValue("L2")
L3 = GoExcel.CurrentRowValue("L3")
L4 = GoExcel.CurrentRowValue("L4")
S1 = GoExcel.CurrentRowValue("S1")
S2 = GoExcel.CurrentRowValue("S2")
S3 = GoExcel.CurrentRowValue("S3")
S4 = GoExcel.CurrentRowValue("S4")
S5 = GoExcel.CurrentRowValue("S5")
S6 = GoExcel.CurrentRowValue("S6")
S7 = GoExcel.CurrentRowValue("S7")
S8 = GoExcel.CurrentRowValue("S8")
S9 = GoExcel.CurrentRowValue("S9")
S10 = GoExcel.CurrentRowValue("S10")
Floor_Ring_Thickness = GoExcel.CurrentRowValue("Floor Ring Thickness")
'QTY = GoExcel.CurrentRowValue("QTY")
Stiffening_Ring_Thickness = GoExcel.CurrentRowValue("Stiffening Ring Thickness")
Stiffening_Ring_Length = GoExcel.CurrentRowValue("Stiffening Ring Length")
Hs = GoExcel.CurrentRowValue("Hs")
Hs1 = GoExcel.CurrentRowValue("Hs1")
Hs2 = GoExcel.CurrentRowValue("Hs2")
Hs3 = GoExcel.CurrentRowValue("Hs3")
De1 = GoExcel.CurrentRowValue("De1")
De2 = GoExcel.CurrentRowValue("De2")
Db = GoExcel.CurrentRowValue("Db")
'Parameter("Main Skeleton:1", "Dm") = GoExcel.CurrentRowValue("Dm")
Pressed_Bottom_Height = GoExcel.CurrentRowValue("Pressed Bottom Height")
Else If DomeType = "Enlarged" Then
i = GoExcel.FindRow("3rd Party:Embedding 2", "Enlarged Dome", "Comp. code", "=", CompCode)
D1int = GoExcel.CurrentRowValue("D1int")
D2int = GoExcel.CurrentRowValue("D2int")
D3int = GoExcel.CurrentRowValue("D3int")
D4int = GoExcel.CurrentRowValue("D4int")
D5 = GoExcel.CurrentRowValue("D5")
D6 = GoExcel.CurrentRowValue("D6")
'Parameter("Main Skeleton:1", "H") = GoExcel.CurrentRowValue("H")
H1 = GoExcel.CurrentRowValue("H1")
H2 = GoExcel.CurrentRowValue("H2")
'H3 = GoExcel.CurrentRowValue("H3")
H4 = GoExcel.CurrentRowValue("H4")
H5 = GoExcel.CurrentRowValue("H5")
H6 = GoExcel.CurrentRowValue("H6")
H7 = GoExcel.CurrentRowValue("H7")
L1 = GoExcel.CurrentRowValue("L1")
L2 = GoExcel.CurrentRowValue("L2")
L3 = GoExcel.CurrentRowValue("L3")
L4 = GoExcel.CurrentRowValue("L4")
S1 = GoExcel.CurrentRowValue("S1")
S2 = GoExcel.CurrentRowValue("S2")
S3 = GoExcel.CurrentRowValue("S3")
S4 = GoExcel.CurrentRowValue("S4")
S5 = GoExcel.CurrentRowValue("S5")
S6 = GoExcel.CurrentRowValue("S6")
S7 = GoExcel.CurrentRowValue("S7")
S8 = GoExcel.CurrentRowValue("S8")
S9 = GoExcel.CurrentRowValue("S9")
S10 = GoExcel.CurrentRowValue("S10")
Floor_Ring_Thickness = GoExcel.CurrentRowValue("Floor Ring Thickness")
'QTY = GoExcel.CurrentRowValue("QTY")
Stiffening_Ring_Thickness = GoExcel.CurrentRowValue("Stiffening Ring Thickness")
Stiffening_Ring_Length = GoExcel.CurrentRowValue("Stiffening Ring Length")
Hs = GoExcel.CurrentRowValue("Hs")
Hs1 = GoExcel.CurrentRowValue("Hs1")
Hs2 = GoExcel.CurrentRowValue("Hs2")
Hs3 = GoExcel.CurrentRowValue("Hs3")
De1 = GoExcel.CurrentRowValue("De1")
De2 = GoExcel.CurrentRowValue("De2")
Db = GoExcel.CurrentRowValue("Db")
'Parameter("Main Skeleton:1", "Dm") = GoExcel.CurrentRowValue("Dm")
Pressed_Bottom_Height = GoExcel.CurrentRowValue("Pressed Bottom Height")
End If
InventorVb.DocumentUpdate()
iLogicVb.RunRule("Bottom Type")
iLogicVb.RunRule("Inlet Outlet Orientation")
iLogicVb.RunRule("Stiffening Rule")