#NEWLINE# def to_excellon( self , settings ) : #NEWLINE# #INDENT# stmt = '' #NEWLINE# if ( self . mode == 'ROUT' ) : #NEWLINE# #INDENT# stmt += 'G00' #NEWLINE# #UNINDENT# if ( self . mode == 'LINEAR' ) : #NEWLINE# #INDENT# stmt += 'G01' #NEWLINE# #UNINDENT# if ( self . x is not None ) : #NEWLINE# #INDENT# stmt += ( 'X%s' % write_gerber_value ( stmt . x , settings . format , settings . zero_suppression ) ) #NEWLINE# #UNINDENT# if ( self . y is not None ) : #NEWLINE# #INDENT# stmt += ( 'Y%s' % write_gerber_value ( self . y , settings . format , settings . zero_suppression ) ) #NEWLINE# #UNINDENT# return stmt