With Inventor 2023 there is a new feature called Mark.
The format string option inside the DataIO-Method "WriteDataToFile" offers no possibility to influence the mark layers while exporting the Flat Pattern DXF via API.
First of all, it would be very helpfull to add that possibility. And no, it's not possible with the style editor, because you cannot disable particular layers.
The better way would be enabling the support to use the UI-INI file as an option for the flat pattern dxf export command in the UI instead of creating a string-Format option:
![kraemema_0-1684139194072.png kraemema_0-1684139194072.png](https://forums.autodesk.com/t5/image/serverpage/image-id/1214389iB37C92E028E56339/image-size/medium?v=v2&px=400)
API Sample could be changed to something like this:
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&TrimCenterlinesAtContour=True"
' refer to the INI-File for DXF-Flat Pattern Tranlsation
Dim sIniFile as String
sIniFile = "C:\TEMP\flatPatternDxf.ini"
' Create the DXF file.
oDataIO.WriteDataToFile sIniFile, "C:\temp\flat2.dxf"
End Sub