Triggering Routines remotely

Triggering Routines remotely

meck
Collaborator Collaborator
355 Views
3 Replies
Message 1 of 4

Triggering Routines remotely

meck
Collaborator
Collaborator

Isn't there any work around, no matter how archaic, to make an iLogic routine run from a completely different document than the one it's in? I have tried everything from remotely changing properties to even editing a sketch in the model to try an trigger a routine. Nothing works. I have set triggers to fire when the part opens but opening the documents with code doesn't fire those triggers. It’s very frustrating to have to open each part in an assembly manually just to get all the routines to run.

Please tell me I'm doing something wrong or that there is a work around that actually works!

Note I'm using 2012.

Thanks in advance!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
356 Views
3 Replies
Replies (3)
Message 2 of 4

skyngu
Collaborator
Collaborator
0 Likes
Message 3 of 4

meck
Collaborator
Collaborator

Thanks for the link!

I have to admit it is working a bit better but there still are many parts that do not trigger when an assembly is opened. I realize that iLogic is just getting started, but I hope Autodesk looks into a way of remotely triggering routines to force the issue.

Thanks again!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 4

MjDeck
Autodesk
Autodesk

In an assembly, you can run a rule in a component using a statement like:

iLogicVb.RunRule("ComponentA:1",  "RuleInPart1")

 

If you are opening documents with code, you can run rules in them like this:

 

Dim otherDoc as Document = ...

auto = iLogicVb.Automation

auto.RunRule(otherDoc, "OtherRuleName")

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes