VBA FOR RUNNING EXTERNAL RULES USING THE FILE LOCATION OF THE RULE

VBA FOR RUNNING EXTERNAL RULES USING THE FILE LOCATION OF THE RULE

Dean.kichenbrand
Contributor Contributor
845 Views
4 Replies
Message 1 of 5

VBA FOR RUNNING EXTERNAL RULES USING THE FILE LOCATION OF THE RULE

Dean.kichenbrand
Contributor
Contributor

Good Day I'm new to VBA and have played around with it a bit, I moved away from iLogic to VBA hoping for more ADVANCE Rules 

 

so What I want to do is make a VBA form to run my external rules but I need it to run the rules by using the file location of the rule. The reason for that is that I'm using a lot of rules and every time I restart inventor and start using my rules I have to run the rules manually Because it gives me an error that the rules weren't found. 

 

P.S if there is any other way around the problem that will also help.

 

Thank You

Dean

0 Likes
Accepted solutions (1)
846 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

My first idea is to program everything in VBA.

Don't mix those two VBA and Ilogic.

Or a better solution start programming your add-ins for inventor.

 

Question:

Why do you need to need to run illogic code from VBA?

And what is going wrong than?

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
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:
My 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 !


 


EESignature

Message 3 of 5

Dean.kichenbrand
Contributor
Contributor

I would like to do everything in VBA but I'm pretty new to coding so at the moment so don't know how I am going to doe everting in VBA.

 

 

The Reason I want to Run iLogic rules with VBA is that I want to make a form in VBA That I can use so that I don't have to go and click a rule and select run

I have tried using the iLogic form but it very Limited.

 

Whats going wrong is that I know how to run external rule from VBA but when I run the rule it cant be found and then I need to go find the rule and run it manually and then it works, but when inventor restarts I have to go through the same process.

So what I need is to run the rule but using the location of the rule file so that it finds the rule every time.

 

 

0 Likes
Message 4 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@Dean.kichenbrand,

 

The suggestions provided in the following forum discussion would help.

 

https://forums.autodesk.com/t5/inventor-customization/run-ilogic-external-rule-with-inventor-vba/td-...

 

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 5 of 5

Dean.kichenbrand
Contributor
Contributor
Thanks chandra! That's what I was looking for!
0 Likes