Inventor Customization

Inventor Customization

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

looking for macro to batch creating drawings and export dxf files

172 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
Posts: 212
Registered: ‎05-20-2013
Message 2 of 3 (148 Views)

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

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



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:







view 2.JPG

ADN Support Specialist
Posts: 662
Registered: ‎06-02-2009
Message 3 of 3 (119 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:


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:


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




Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.