From 2123e2ca9c0cc4f367f5a1b9af02401795a1d9fa Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 1 Apr 2024 22:57:25 -0700 Subject: [PATCH] Add some corrections to IPC2581 export syntax Outline fonts need lineDesc Padstack def need the location for the pad relative to the padstack --- pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp index e5da57fbbf..0d4a1c3e9f 100644 --- a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp +++ b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp @@ -659,6 +659,7 @@ void PCB_IO_IPC2581::addText( wxXmlNode* aContentNode, EDA_TEXT* aText, const KI wxXmlNode* outline_node = appendNode( text_node, "Outline" ); wxXmlNode* poly_node = appendNode( outline_node, "Polygon" ); + addLineDesc( outline_node, 0, LINE_STYLE::SOLID ); const std::vector& pts = aPoly.CPoints(); wxXmlNode* point_node = appendNode( poly_node, "PolyBegin" ); @@ -1663,6 +1664,7 @@ void PCB_IO_IPC2581::addPadStack( wxXmlNode* aPadNode, const PAD* aPad ) wxXmlNode* padStackPadDefNode = appendNode( padStackDefNode, "PadstackPadDef" ); addAttribute( padStackPadDefNode, "layerRef", m_layer_name_map[layer] ); addAttribute( padStackPadDefNode, "padUse", "REGULAR" ); + addLocationNode( padStackPadDefNode, aPad->GetOffset().x, aPad->GetOffset().y ); if( aPad->HasHole() || !aPad->FlashLayer( layer ) ) {