Inject external rule to iTrigers to existing files

Inject external rule to iTrigers to existing files

Ezekiel12
Collaborator Collaborator
927 Views
7 Replies
Message 1 of 8

Inject external rule to iTrigers to existing files

Ezekiel12
Collaborator
Collaborator

Hi,

is there a way how to inject external iLogic rule to iTriger (before save, after save,...) to hundreds of already existing Inventor files? 

 

Thx,

Matt

0 Likes
928 Views
7 Replies
Replies (7)
Message 2 of 8

JaneFan
Autodesk
Autodesk

Global event trigger was introduced from inventor 2018.1 that it can help you to achieve that goal easily. 

Firstly configure your external rules directory and put your external rules into that folder. 

Then drag the required external rules to some events as needed via Event Triggers dialog. Have a try. 

2.png




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 8

Ezekiel12
Collaborator
Collaborator

Hi Jane,

I think that's not what I aksked 🙂 I know WHAT are external rules and WHAT are iTriggers. 

If I put it in the template, than its all fine for every new created file. But I already have existing project with a lot of files. Is there a way how to put external rules to itrigers to multiple existing files?

Matt

 

0 Likes
Message 4 of 8

JaneFan
Autodesk
Autodesk

I am not quite sure if I am understanding correctly. It seems you are not using event trigger, but using iTrigger to manage all the files, right?  So is that what you want to add the line like "trigger = iTrigger0" or anything like it into existing iLogic rules? 




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 5 of 8

Ezekiel12
Collaborator
Collaborator

Im sorry Jane, I wrote that too early morning without coffee. 🙂 No I need event trigger (before save for example)... but put the same setting in multiple (already existing) files. 

 

For example:

FileABC.ipt

Before Save (event)

- ExternalRule1

- ExternalRule2

 

... and do this (at best once) for hundreds of files (so without template).

 

0 Likes
Message 6 of 8

JaneFan
Autodesk
Autodesk

That's Ok 🙂 

Do you want to control rule trigger in event trigger of the opened document, or all documents of some certain type? Besides, can I know your inventor version? 




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 7 of 8

Ezekiel12
Collaborator
Collaborator

INV 2019

 

Only opened, but I kind of dont want to put the same settings to 100 files manually. (Its the same settings.. Run this external rule before save).

 

So what Im asking is... can I put this logic to 100 file in bulk? External file already existing, I know the event I want to put it, I just need to put it to files in bulk... 

0 Likes
Message 8 of 8

JaneFan
Autodesk
Autodesk

Hi @Ezekiel12 , 

 

The files you are saying are inventor files, right? It seems to me that you need to put the same event trigger setting to like 100 inventor files? If so, global event trigger is the best choice since it can be set via inventor application level.

Navigate to Event trigger dialog, configure an external rules folder to any directory, can be in your project location or not, which is used to store iLogic rules on events settings.  

3.png

Then if your files are all parts, just configure in Parts tab to drag the rules under required events, or configure in other tabs if file types are others or mixtures. 

Take configuring in Parts tab as example, after done setting, every time a part is saved, the event is trigger automatically. 

Please let me know whether this is what you want. 🙂

4.png




Jane Fan
Inventor/Fusion QA Engineer
0 Likes