Gerber X1 plot files: prepare adding more structured comments (aperture and object attributes)

structured comments are lines starting by "G04 #@!" and are therefore Gerber X1 comments.
But these comments contain X2 attributes.
This commit is contained in:
jean-pierre charras
2018-05-17 17:32:35 +02:00
parent dfcdfe91fa
commit d1cab6ec62
3 changed files with 82 additions and 38 deletions
+3 -2
View File
@@ -145,7 +145,7 @@ void GERBER_PLOTTER::formatNetAttribute( GBR_NETLIST_METADATA* aData )
std::string short_attribute_string;
if( !FormatNetAttribute( short_attribute_string, m_objectAttributesDictionnary,
aData, clearDict ) )
aData, clearDict, false ) )
return;
if( clearDict )
@@ -351,7 +351,8 @@ void GERBER_PLOTTER::writeApertureList()
if( attribute != m_apertureAttribute )
fputs( GBR_APERTURE_METADATA::FormatAttribute(
(GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB) attribute ).c_str(), outputFile );
(GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB) attribute, false ).c_str(),
outputFile );
char* text = cbuf + sprintf( cbuf, "%%ADD%d", tool->m_DCode );