Message 1 of 2
iLogic Parameter Issue - Inventor 2018.2.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone check this.
Open the attached Part (or create your own)
Using the following code, create an external rule
Run the rule
If Parameter("Thickness") = 6 Then MessageBox.Show(Parameter("Thickness"), "Thickness") End If If Parameter("Width") = 10 Then MessageBox.Show(Parameter("Width"), "Width") End If
How come "Width" generates a MsgBox, but "Thickness" does not .
Note that the code works in an internal rule as expected
If Thickness = 6 Then MessageBox.Show(Thickness, "Thickness") End If If Width = 10 Then MessageBox.Show(Width, "Width") End If
If I change the code to the following (adding .ToString) then the code works
If Parameter("Thickness").ToString = 6 Then MessageBox.Show(Parameter("Thickness"), "Thickness") End If If Parameter("Width").ToString = 10 Then MessageBox.Show(Parameter("Width"), "Width") End If
It seems that the way Inventor reports/records a number to ther user is different to how it keeps the number internally
Regards
MattH
MattH
Product Design Collection 2026
Vault Pro 2026