Export Flat Pattern to DXF R12 failes if filename contains special chars

Export Flat Pattern to DXF R12 failes if filename contains special chars

w.pepping
Advocate Advocate
481 Views
1 Reply
Message 1 of 2

Export Flat Pattern to DXF R12 failes if filename contains special chars

w.pepping
Advocate
Advocate

Since I have installed Inventor 2019 it is not possible anymore to export flat patterns to DXF R12 if the filename contains special chars such as 'ø'.

This code from the help gives the error:

 

 

Public Sub WriteSheetMetalDXF()
    ' Get the active document.  This assumes it is a part document.
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument

    ' Get the DataIO object.
    Dim oDataIO As DataIO
    Set oDataIO = oDoc.ComponentDefinition.DataIO

    ' Build the string that defines the format of the DXF file.
    Dim sOut As String
    sOut = "FLAT PATTERN DXF?AcadVersion=R12&OuterProfileLayer=Outer"

    ' Create the DXF file.
    oDataIO.WriteDataToFile sOut, "D:\Støtte.dxf"
End Sub

With the build in 'Save copy as' command I get the same error, so it seems to be a bug.

 

 

Get control of your sheet metal files.
Download the app from matprop.com
0 Likes
Accepted solutions (1)
482 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@w.pepping,

 

It was working fine in Inventor 2018. Unfortunately, throws exception while exporting Flat Pattern to DXF with special chars in DXF name via Inventor 2019 API. So, a change request is created with engineering team to address this issue and details are given below.

 

INVGEN - 22024 - Unable to export Flat pattern to DXF with special character such as "ø" via Inventor API.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes