Autodesk Inventor Vb.Net AddIn - Force version of Dxf output

Autodesk Inventor Vb.Net AddIn - Force version of Dxf output

isocam
Collaborator Collaborator
193 Views
1 Reply
Message 1 of 2

Autodesk Inventor Vb.Net AddIn - Force version of Dxf output

isocam
Collaborator
Collaborator

Can anybody help?

 

I have the following code, taken from a Vb.Net "Addin".

 

Dim extrusion As ExtrudeFeature = oCompDef.Features.ExtrudeFeatures.Item(1)

Dim sketch As Sketch = extrusion.Definition.Profile.Parent

sketch.DataIO.WriteDataToFile("DXF", DxfFileName)

 

Does anybody know how I can change the above to export a Dxf file to a different version of AutoCAD, for example, save to an AutoCAD 2007 dxf file?

 

Many thanks in advance!

 

Darren

0 Likes
194 Views
1 Reply
Reply (1)
Message 2 of 2

Dev_rim
Advocate
Advocate

Hi Darren

Can you I am not sure but i looked in to the API Help

devrimyoyen_0-1669643954083.png

So with this information maybe it can be work:

Dim extrusion As ExtrudeFeature = oCompDef.Features.ExtrudeFeatures.Item(1)
Dim sketch As Sketch = extrusion.Definition.Profile.Parent
sketch.DataIO.WriteDataToFile("DXF?AcadVersion=2007", DxfFileName)

 

Regards

Devrim

If my answer is solved your problem, please mark it as Solution

Freundliche Grüße / Kind Regards
0 Likes