Run iLogic code from model, then on drawing

Run iLogic code from model, then on drawing

kareemta
Explorer Explorer
614 Views
3 Replies
Message 1 of 4

Run iLogic code from model, then on drawing

kareemta
Explorer
Explorer

Hello,

I have a code to create DXF flat patterns for sheet metal parts. The code is run from a component file and takes the model, unfolds, creates a drawing on a black sheet, and adds the flat pattern. I used to have another code that would remove the bend lines, check for counter-sinks, and then save the file. I want to combine these but get an error after "Phase II" because it is not a drawing.

 

Is there anyway to run the second part of this code on the drawing that was created by the first?

 

Thanks

0 Likes
615 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Are you creating a drawing file of the part because you want the bend lines to be in the dxf?

If you didn't have to have the bend lines in the dxf then there is a code on this site that might do what you want.

https://www.cadlinecommunity.co.uk/hc/en-us/articles/201885001-DXF-flat-pattern-using-Inventor-iLogi...

0 Likes
Message 3 of 4

kareemta
Explorer
Explorer

No the code actually removes the bendlines so the files can be sent to laser. 

 

The goal is to create a drawing with the flat pattern, remove the bendlines, and save the dxf all in one go.

 

Currently I make that happen if I split up the drawing creation and the clean up/saving into two steps.

 

0 Likes
Message 4 of 4

MjDeck
Autodesk
Autodesk

You can do it by splitting the rule in two, and having the first rule run the second. That way the second rule can run "in the drawing". See the attached files.
I tested this in Inventor 2019. I noticed that your drawing template is in an Inventor 2011 folder. I didn't try in Inventor 2011, but this method should work there as well.

The iLogic system will find the second rule if you set up an External Rules folder (in Tools > Options > iLogic Configuration) and put both rule files in that folder.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes