Add some corrections to IPC2581 export syntax
Outline fonts need lineDesc Padstack def need the location for the pad relative to the padstack
This commit is contained in:
parent
303bc19ce8
commit
2123e2ca9c
|
@ -659,6 +659,7 @@ void PCB_IO_IPC2581::addText( wxXmlNode* aContentNode, EDA_TEXT* aText, const KI
|
||||||
|
|
||||||
wxXmlNode* outline_node = appendNode( text_node, "Outline" );
|
wxXmlNode* outline_node = appendNode( text_node, "Outline" );
|
||||||
wxXmlNode* poly_node = appendNode( outline_node, "Polygon" );
|
wxXmlNode* poly_node = appendNode( outline_node, "Polygon" );
|
||||||
|
addLineDesc( outline_node, 0, LINE_STYLE::SOLID );
|
||||||
|
|
||||||
const std::vector<VECTOR2I>& pts = aPoly.CPoints();
|
const std::vector<VECTOR2I>& pts = aPoly.CPoints();
|
||||||
wxXmlNode* point_node = appendNode( poly_node, "PolyBegin" );
|
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" );
|
wxXmlNode* padStackPadDefNode = appendNode( padStackDefNode, "PadstackPadDef" );
|
||||||
addAttribute( padStackPadDefNode, "layerRef", m_layer_name_map[layer] );
|
addAttribute( padStackPadDefNode, "layerRef", m_layer_name_map[layer] );
|
||||||
addAttribute( padStackPadDefNode, "padUse", "REGULAR" );
|
addAttribute( padStackPadDefNode, "padUse", "REGULAR" );
|
||||||
|
addLocationNode( padStackPadDefNode, aPad->GetOffset().x, aPad->GetOffset().y );
|
||||||
|
|
||||||
if( aPad->HasHole() || !aPad->FlashLayer( layer ) )
|
if( aPad->HasHole() || !aPad->FlashLayer( layer ) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue