Inventor Customization

Inventor Customization

Reply
New Member
daledai
Posts: 2
Registered: ‎12-12-2012
Message 1 of 3 (162 Views)

looking for macro to batch creating drawings and export dxf files

162 Views, 2 Replies
05-28-2014 12:36 PM

Hi, All,

 

I am looking for a macro program to do the following.

 

1. create an drawing for a part using specified template. The program will read a list of part names. do one drawing at a time. The parts are all sheet metal parts

2. create view for the created drawing, select flat pattern view

3.  'Save copy as' an dxf file to specified destination.

 

If you could share the code or point me to the right source, it would very appreciated.

 

Distinguished Contributor
nmjshaw150
Posts: 208
Registered: ‎05-20-2013
Message 2 of 3 (138 Views)

Re: looking for macro to batch creating drawings and export dxf files

06-01-2014 01:32 PM in reply to: daledai

Hi

 

my new tool called MegaSheets will be out next month. this allows you to select and create drawings of each part in an assembly at views that you have selected. There is also an option to select the view type (shaded, wireframe etc), scale, add view name (front elevation etc). You can also choose whethere to create one file will all sheets or all separate sheets. option to choose between dwg & idw is there too.

 

Added recently is the optino to select a template and from that, choose which titleblock & border to use

 

Keep checking here and the app store. it will be £99 and with it comes a few other nifty tools too :smileyhappy:

 

 

Nigel

 

form.JPG

 

view 2.JPG

ADN Support Specialist
philippe.leefsma
Posts: 658
Registered: ‎06-02-2009
Message 3 of 3 (109 Views)

Re: looking for macro to batch creating drawings and export dxf files

06-09-2014 10:39 AM in reply to: nmjshaw150

Creating a drawing from a custom template, inserting drawing views, accessing parameters, all this is pretty basic workflow with the API.

 

If you are a complete newbie, I suggest you take a look at My First Inventor plug-in:

 

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=17324828

 

Also we placed on github a complete set of classes, presentations and .Net samples breaked down into specific modules, take a look at the Drawing and Drawing Advanced modules, you should be able to find what you are looking for to get started:

 

https://github.com/ADN-DevTech/Inventor-Training-Material

 

Exporting a flat pattern to dxf is also a common task, you can find easily samples on our blogs, here is one for instance:

 

http://adndevblog.typepad.com/manufacturing/2012/05/exporting-flat-pattern-as-dwgdxf.html

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!