Inventor Customization

Reply
Valued Contributor
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 1 of 10 (368 Views)

ipt to dxf

368 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
Vladimir.Ananyev
Posts: 479
Registered: ‎08-14-2012
Message 2 of 10 (341 Views)

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
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 3 of 10 (329 Views)

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
Vladimir.Ananyev
Posts: 479
Registered: ‎08-14-2012
Message 4 of 10 (322 Views)

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
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 5 of 10 (314 Views)

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
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 6 of 10 (311 Views)

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
Vladimir.Ananyev
Posts: 479
Registered: ‎08-14-2012
Message 7 of 10 (281 Views)

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
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 8 of 10 (269 Views)

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
ekinsb
Posts: 318
Registered: ‎07-21-2006
Message 9 of 10 (261 Views)

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
wowens63
Posts: 98
Registered: ‎06-22-2007
Message 10 of 10 (251 Views)

Re: ipt to dxf

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

thank you.

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.