Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
NachitoMax
in reply to: JelteDeJong

Hi

Thanks for the reply. I get that bit and it would be great if there was docuemtnatino to support the customization of the FlatPattern.xml. for example, i dont want to use the default layer names, i need to use our own names with different colors. I am able to set that up in the .ini file but it doesnt do anything when exporting from a drawing.

 

So

 

is there any documentation on customizing the flatpattern.xml? in code, i can do it this way and name my layers & colors

 

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=CUT" & _
            "&OuterProfileLayerColor=255;0;0" & _
            "&BendUpLayer=BENDUP" & _
            "&BendUPLayerColor=0;255;0" & _
            "&BendDownLayer=BENDDOWN" & _
            "&BendDownLayerColor=0;255;0" & _
            "&InteriorProfilesLayer=INNER" & _
            "&InteriorProfilesLayerColor=255;0;127" & _
            "&TangentLayer=EXTENTS" & _
            "&TangentLayerColor=0;0;255"
            
    ' Create the DXF file.
    oDataIO.WriteDataToFile sOut, "C:\temp\flat2.dxf"
End Sub

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.