How create a ilogic rule by VBA

How create a ilogic rule by VBA

Anonymous
Not applicable
1,466 Views
4 Replies
Message 1 of 5

How create a ilogic rule by VBA

Anonymous
Not applicable

Hello,

I need to add into the current Inventor file (iam, ipt. etc...) an ilogic rule using VBA code and trigger it to a specific event like "before to save the document". I'm looking for an example which I can adapt/modify.

 

Thanks a lot in advance

Daniele

 

PS: I know the "Code Injector" application that I used when I have to do that for a mass update, but in this case I need something which my colleagues can simply run with a button.

0 Likes
1,467 Views
4 Replies
Replies (4)
Message 2 of 5

jdkriek
Advisor
Advisor

MegaJerk worked on this for a long time and ended up creating the tool that you mentioned. 

His source VB.Net is still available, which I feel would be the best starting point for you.

Adding rules is simple, but applying the event triggers is a diffrent story.

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 5

Anonymous
Not applicable

Hi Jonathan,

yes I agree VB.net is better than VBA, but I would like to add this possibility into a macro I already developed by VBA.

I planned to traslate it on VB.Net but I havn't time now, so I'm looking for an example in VBA.

 

Thanks, Daniele.

0 Likes
Message 4 of 5

dankle43
Enthusiast
Enthusiast

Daniele,

 

Did you ever find a way to create an ilogic rule with vba.  I am looking to do the exact same thing that you were looking for. 

 

Thanks, Korey

0 Likes
Message 5 of 5

HermJan.Otterman
Advisor
Advisor

also info on the eventtriggers can be found in the source code of MegaJerk.

 

here is a link

https://forums.autodesk.com/t5/inventor-customization/api-set-an-event-trigger-for-an-ilogic-rule-in...

 

here is an other one that could help:

http://adndevblog.typepad.com/manufacturing/2015/01/add-external-ilogic-rule-to-event-trigger.html

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes