Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

External rule - not reading parameter from sheetmetal

1 REPLY 1
Reply
Message 1 of 2
Charlies_3D_T
192 Views, 1 Reply

External rule - not reading parameter from sheetmetal

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
1 REPLY 1
Message 2 of 2

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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report