Inventor Customization

Reply
Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 1 of 10

ipt to dxf

408 Views, 9 Replies
08-27-2013 07:02 AM

using Inventor 2012 API

Is it possible to export a ipt file to a dxf file? (no im not talking about the flat pattern) I mean any ipt file sheet metal or not.

 

Thanks,

wade

 

ADN Support Specialist
540 Posts
81 Kudos
Registered: ‎08-14-2012
Post 2 of 10

Re: ipt to dxf

08-28-2013 02:46 AM in reply to: wowens63

Could you please test the Export to DXF API Sample from Inventor API help? It can be found in Translators section.

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 3 of 10

Re: ipt to dxf

08-28-2013 05:32 AM in reply to: wowens63

that was the first thing i tried but unfortunately there code does not make a valid dxf file..

 

error from autocad when opening the dxf file..

 

Error in drawing header on line 1.
C:\tempdxfout.dxf is not valid DXF file
Invalid or incomplete DXF input -- drawing discarded

 

thanks anyway

 

 

 

 

 

ADN Support Specialist
540 Posts
81 Kudos
Registered: ‎08-14-2012
Post 4 of 10

Re: ipt to dxf

08-28-2013 06:11 AM in reply to: wowens63

If you upload 1) Inventor file,  2) VBA test code and 3) produced by this code dxf file, then we have a chance to investigate this problem.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 5 of 10

Re: ipt to dxf

08-28-2013 07:54 AM in reply to: wowens63

here is all items, but the code is vb.net with visual studio 2010

 

Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 6 of 10

Re: ipt to dxf

08-28-2013 08:00 AM in reply to: Vladimir.Ananyev

here is a part.ipt file with the VBA code..the code was copied pasted from the Inventor help file..

ADN Support Specialist
540 Posts
81 Kudos
Registered: ‎08-14-2012
Post 7 of 10

Re: ipt to dxf

08-29-2013 12:49 AM in reply to: wowens63

Have you tested your workflow in UI?

You should create drawing from your part and then run translator to produce DXF file.  

Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 8 of 10

Re: ipt to dxf

08-29-2013 05:18 AM in reply to: wowens63

ok so I need to create a drawing from the part.ipt file first then convert to DXF correct? in other words you can not create a DXF file from a Part.ipt file directly

ADN Support Specialist
396 Posts
58 Kudos
Registered: ‎07-21-2006
Post 9 of 10

Re: ipt to dxf

08-29-2013 02:36 PM in reply to: wowens63

You're correct, Inventor does not support writing 3D models to DXF.  You can write out 2D data, sketches and drawings, as DXF.



Brian Ekins
Developer Technical Services
Autodesk Developer Network
Autodesk, Inc.
Valued Contributor
98 Posts
2 Kudos
Registered: ‎06-22-2007
Post 10 of 10

Re: ipt to dxf

08-30-2013 05:30 AM in reply to: wowens63

thank you.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!