iLogic rules not triggering

iLogic rules not triggering

meck
Collaborator Collaborator
1,245 Views
9 Replies
Message 1 of 10

iLogic rules not triggering

meck
Collaborator
Collaborator

I have been having trouble with parts that do not trigger iLogic rules. I've set the triggering events to After Open Document, but nothing triggers. I must manually open the parts and then click the iTrigger to get the rules to run. This is not all parts only a select few and seemingly random.

Is there something I can do to ensure the triggers fire and the rules to run?

 

Sidebar: If a part is set for trigger After Open Document should that part trigger the rules when the assembly that the part is in is opened?

 

Thanks

Mike Eck

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
1,246 Views
9 Replies
Replies (9)
Message 2 of 10

MjDeck
Autodesk
Autodesk

Mike,

 If you have rules selected to run on the After Open Document event, then they should run when you open an assembly that contains the part.

 Here's a situation that would prevent the rules from running: you already have the part open in the Inventor session (maybe as a component in another assembly).  The part is already open, so Inventor doesn't have to open it again.

 What version of Inventor are you running?  Can you post a small sample assembly that shows the problem?


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 10

meck
Collaborator
Collaborator

There are no other parts or assemblies open.

The parts have parameters linked to them so it would be quite a project to get get one set up to post, but I will try tomorrow (Friday).

I am using 2012 with SP 1.

 

Regards

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

meck
Collaborator
Collaborator

The attached part does not have the linked parameter parts included, but it still works as I indicated.

Open the part and select skip all to ingnor the linked parameters. The part's length should be 143.206 long. Next click iTrigger (under Manage) and you should see the part shorten to 58.081 in. You will notice that I have set the Event Triggers to  After Open Document.

 

Thanks for the help!

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

MjDeck
Autodesk
Autodesk

There is a problem with rules that depend on linked parameters running at Open Document time.  The rule runs, but the parameters aren't up-to-date yet.  The rule operates on the old values.

 If you take the rules out of the After Open Document event, they should run when you hit Update after opening the part.  Can you do it that way?

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 6 of 10

meck
Collaborator
Collaborator

Here's my work flow; as strange as it may seem...

A user copies a part that has no entities but is contains a list of parameters into a folder that they choose. The part also holds iLogic forms where a user can input all the necessary data to create a new model. Once the user enters the data there is a form in the part that copies all the "template" models required to generate the assembly to the users specs. The template model's paramters are linked to the parameters of the orginal part.

When the user opens the assembly I want all the linked parameters updated and all the rules to fire so that the assembly reflects the users specs

.

I would mind the user having to click Update or iTrigger on the assembly or even sub-assemblies, but having him drill down to parts and do that would not go over too well.

 

Maybe I'm asking too much of Inventor to do this, but it really does work except for a few parts like the one I attached.

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

MjDeck
Autodesk
Autodesk

 If parts within an assembly need updating, the assembly will know that it needs to be updated when you open it.  You should be able to do an Update (or Global Update if necessary) in the assembly and it will update the parts.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 8 of 10

meck
Collaborator
Collaborator

Very true, unfortunately some parts like the one I supplied still do not update. I'll do a global update, a rebuild all, iTrigger, and multiple basic updates but still a few parts remain unchanged. A frustrating thing for sure. I will be attending the AU and the ADN this year if you want to see it in action?

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

MjDeck
Autodesk
Autodesk

Did you take the rules named Dims and Props out of the After Open Document event in the part Channel End Arr 1.ipt?  Please try that step, if you haven't already.

 I won't be at AU.  But I could set up a GotoMeeting.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 10 of 10

meck
Collaborator
Collaborator

Wow that actually worked!

But I'm confused why would it not trigger the routines with the trigger set to After Open Document? I thought it would be the only way to get it to trigger form the main assembly. Should I remove the trigger After Open Document on all my templatre files?

In any case I really appreciate your help!

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