Hello,
For some reason when i transfer a rule to an external rule it's not working.
It's doesn't read the parameter Thickness. Someone any idea what i'm forgetting?
If Parameter("Thickness") = "1.0" Or Parameter("Thickness") = "1.5" Or Parameter("Thickness") = "2" Or Parameter("Thickness") = "3" Or Parameter("Thickness") = "4" Then 'iProperties.Value("Custom", "BendRadius_Ilogic") = 1 Parameter("BendRadius_Ilogic") = 1 MessageBox.Show(Parameter("BendRadius_Ilogic"), "Title") ElseIf Parameter("Thickness") = "5" Or Parameter("Thickness") = "6.0" Or Parameter("Thickness") = "8" Or Parameter("Thickness") = "10" Or Parameter("Thickness") = "12" Or Parameter("Thickness") = "15" Or Parameter("Thickness") = "20" Then 'iProperties.Value("Custom", "BendRadius_Ilogic") = 4 Parameter("BendRadius_Ilogic") = 4 MessageBox.Show(Parameter("BendRadius_Ilogic"), "Title") Else MessageBox.Show("Error in thickness rule", "Title") End If
How do you call/run your external rule?
For me it works when I use this in an external rule!
iLogicVb.RunExternalRule("xyz")
Regards
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
Can't find what you're looking for? Ask the community or share your knowledge.