Trigger iLogic rule in subassembly(iAssembly, iPart)

Trigger iLogic rule in subassembly(iAssembly, iPart)

Anonymous
Not applicable
1,111 Views
5 Replies
Message 1 of 6

Trigger iLogic rule in subassembly(iAssembly, iPart)

Anonymous
Not applicable

I have an assembly that calls an iAssembly, with iParts in it. All parts update properly when opened independently.

 

When the iAssembly calls one of the iParts, its iLogic rule will not run unless I open the part, run the rule, then update it in the iAssembly.

 

Similarly, in the top-level, the iAssembly will not update when I call a new row in the table.

 

How do I force the rules in these iParts and iAssemblies to run, and update the parts, from the top-level? Or is this just a case of "iLogic and iParts don't play well"?

 

For an example, here is the rule I tried in my iAssembly, to call an update on the iPart.

 

iLogicVb.RunRule("350-5075P.1", "rivet_spacing")

 

It found the part, but could not find the rule. The rule is spelled correctly, and is in the file called by instance 350-5075P.1.

 

Error in rule: control, in document: 350-5075B.iam

RunRule("350-5075P.1", "rivet_spacing"): Cannot find a rule with the name: "rivet_spacing".

1,112 Views
5 Replies
Replies (5)
Message 2 of 6

mrattray
Advisor
Advisor
The rule only exists in the iPart "factory", not in the iPart "member", and I don't believe there's any way to reference the iPart factory directly from the assembly. Unfortunately, I believe this is one of those instances where you just have too many different "i"'s in the kitchen.
I don't have any good reach around for you off of the top of my head. Perhaps if you can post your files here myself or someone else might be able to come up with something.
Mike (not Matt) Rattray

0 Likes
Message 3 of 6

Anonymous
Not applicable

I have the same problem, just as you describe, and i don't know what to do.

Can someone help us please?

0 Likes
Message 4 of 6

johnsonshiue
Community Manager
Community Manager

Hi William,

 

Do you mind elaborating the need to have iLogic rule embedded in iPart members? Are you trying to create custom iPart members by altering the table? Could you publish the iPart factory (including the iLogic rule) to Content Center and place the member from CC? I believe the iLogic rule will be carried over in the CC part.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 5 of 6

Anonymous
Not applicable

Hi John

 

 

 

 

 

 

 

 

0 Likes
Message 6 of 6

johnsonshiue
Community Manager
Community Manager

Hi! I think I understand your request. We have quite a few users leverage publishing iPart with iLogic rule workflow. When you place the published part from Content Center, the iLogic rule does come with it. Also, you can run the rule just like any regular part. You mentioned that you tried it but it failed. Could you walk me through the exact procedure you did leading to the error?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes