Running an Ilogic Rule at part level from Assembly

Running an Ilogic Rule at part level from Assembly

jorikvandermeer
Explorer Explorer
1,238 Views
2 Replies
Message 1 of 3

Running an Ilogic Rule at part level from Assembly

jorikvandermeer
Explorer
Explorer

I'm having some trouble running an Ilogic code which normally functions at a part level. Firt i have to mention i'm not at al experienced with Inventor, let alone ILogic.

 

I've browsed through some forum posts and got a Ilogic code for an Oriented Rangebox working at the part level. I've created this as an external rule, which runs with a Macro button. The dimensions are written as Iproperties to the part in question. These dimensions can later be used in the BOM and cutting list.

 

The company i'm working at produces custom (semi-) trailers. When designing a new trailer, the structural members are often custom made, with seperate steel plates and stips. 

Normally we'll make a Master Sketch, which is projected to the seperate parts in the assembly. So my goal is to be able to edit the part, within the parent assembly and run the rule from there. Instead of opening each part and run the rule.

 

With kind regards,

 

Jorik

0 Likes
Accepted solutions (1)
1,239 Views
2 Replies
Replies (2)
Message 2 of 3

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

Is there something like

Dim oDoc as PartDocument = ThisApplication.ActiveDocument

in your code. The active document is the assembly in this case. You can try to change this line to

Dim oDoc as PartDocument = Thisapplication.ActiveEditDocument

For further help you need to post relevant parts of your code.


R. Krieg
RKW Solutions
www.rkw-solutions.com
Message 3 of 3

jorikvandermeer
Explorer
Explorer

Works like a charm!

Thanks a lot!

0 Likes