iLogic

iLogic

Anonymous
Not applicable
962 Views
5 Replies
Message 1 of 6

iLogic

Anonymous
Not applicable

So I've created an ipt file that uses iLogic to automate the design of the part I want to make. With each part, I also need to generate a drawing, so I was wondering if there is some sort of coding in iLogic that I can put in a rule to run whenever I want to generate a drawing from the part I have. The placement of the dimensions and types of views are always the same, so if the drawing could automate those as well that would be awesome.

 

I've researched this already, but all the solutions I've found utilize imports, and I don't know how to access those libraries. So, if there's a way around that I'd like to know, and if not then how do you utilize imports?

0 Likes
Accepted solutions (1)
963 Views
5 Replies
Replies (5)
Message 2 of 6

mcgyvr
Consultant
Consultant

Could you do a "tabulated drawing" so you only need 1 drawing to apply to ALL parts?

 

Something like this http://www.cadalyst.com/files/cadalyst/nodes/2008/11176/0208SolidEdge1.jpg

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 3 of 6

mflayler
Advisor
Advisor

If you have an existing part and drawing already created in the same workspace, I have some code that will do that for you.

 

Essentially it performs a Save Copy As for both the part and the drawing and then uses the Replace Model Reference to switch out the model reference in the drawing to the new file.  This code would not work if the drawing does not already exist.

 

Is that scenario acceptable?

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

Mark Flayler - Engagement Engineer

IMAGINiT Manufacturing Solutions Blog: https://resources.imaginit.com/manufacturing-solutions-blog

0 Likes
Message 4 of 6

Anonymous
Not applicable
That would work. I was hoping that I could come up with something that would work even if the drawing doesn't already exist, but that's not absolutely crucial. Thanks for you help!
0 Likes
Message 5 of 6

mflayler
Advisor
Advisor
Accepted solution

Here is the information on the code I have...

 

http://blogs.rand.com/manufacturing/2016/06/ilogic-inventor-enhanced-save-as.html

 

Disclaimer...I didn't write it, but i slightly modified it.

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

Mark Flayler - Engagement Engineer

IMAGINiT Manufacturing Solutions Blog: https://resources.imaginit.com/manufacturing-solutions-blog

0 Likes
Message 6 of 6

bionorica2015
Enthusiast
Enthusiast
0 Likes