#NEWLINE# def _get_dxf_index( self ) : #NEWLINE# #INDENT# if ( self . dxf_index is not None ) : #NEWLINE# #INDENT# return self . dxf_index #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# key = self . _get_format_key ( ) #NEWLINE# if ( key in self . dxf_format_indices ) : #NEWLINE# #INDENT# return self . dxf_format_indices [ key ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# index = len ( self . dxf_format_indices ) #NEWLINE# self . dxf_format_indices [ key ] = self #NEWLINE# self . dxf_index = index #NEWLINE# return index