Inventor Customization

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

ipt to dxf

400 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: 531
Registered: ‎08-14-2012
Message 2 of 10 (373 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 (361 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: 531
Registered: ‎08-14-2012
Message 4 of 10 (354 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 (346 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 (343 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: 531
Registered: ‎08-14-2012
Message 7 of 10 (313 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 (301 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: 352
Registered: ‎07-21-2006
Message 9 of 10 (293 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 (283 Views)

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
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.