Export face as DXF from API?

Export face as DXF from API?

Anonymous
Not applicable
922 Views
2 Replies
Message 1 of 3

Export face as DXF from API?

Anonymous
Not applicable
We continue to struggle with creating DXF files from our parameter driven sheet metal parts in Inv 11, and now in Inv 2008. The layer assignments for DXF export work
well in 2008, but parts of other faces continue to appear in the DXF files, requiring editing before they are suitable for machine cutting. An example DXF file is attached.

My question is: Can I programmatically export the base face to DXF from Inventor 2008 to elimnate parts of other faces in the DXF file created from the entire flat pattern?

Thanks,
Bruce Scott
Henderson Mfg.
0 Likes
923 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
There isn't a formal API for the 'Export Face to DXF' command. You can drive
the UI command via the API (see code below), but there isn't a way to
specify any of the DXF save options.

Sub ExportFaceToDXF()

Dim odoc As PartDocument
Set odoc = ThisApplication.ActiveDocument

Dim oBaseFace As Face
Set oBaseFace = ...

odoc.SelectSet.Select oBaseFace

ThisApplication.CommandManager.PostPrivateEvent kFileNameEvent,
"C:\temp\BaseFace.dxf"

Dim oCtrlDef As ButtonDefinition
Set oCtrlDef =
ThisApplication.CommandManager.ControlDefinitions.Item("GeomToDXFCommand")

oCtrlDef.Execute

End Sub

Sanjay-

wrote in message news:5581759@discussion.autodesk.com...
We continue to struggle with creating DXF files from our parameter driven
sheet metal parts in Inv 11, and now in Inv 2008. The layer assignments for
DXF export work
well in 2008, but parts of other faces continue to appear in the DXF files,
requiring editing before they are suitable for machine cutting. An example
DXF file is attached.

My question is: Can I programmatically export the base face to DXF from
Inventor 2008 to elimnate parts of other faces in the DXF file created from
th
e entire flat pattern?

Thanks,
Bruce Scott
Henderson Mfg.
0 Likes
Message 3 of 3

Anonymous
Not applicable
I am not sure if this would help your case or not, but have you taken a
look at the "Export Planer Geometry For Flat Pattern" addin on my site

It is at the bottom of the page here
http://www.kwikmcad.com/icode/addins.asp

--

Kent Keller
wrote in message news:5581759@discussion.autodesk.com...
We continue to struggle with creating DXF files from our parameter driven
sheet metal parts in Inv 11, and now in Inv 2008. The layer assignments for
DXF export work
well in 2008, but parts of other faces continue to appear in the DXF files,
requiring editing before they are suitable for machine cutting. An example
DXF file is attached.

My question is: Can I programmatically export the base face to DXF from
Inventor 2008 to elimnate parts of other faces in the DXF file created from
th
e entire flat pattern?

Thanks,
Bruce Scott
Henderson Mfg.
0 Likes