def saveFile(self,fileName):
     """
         save the current file in a non pythoncad Format
     """
     path,exte=os.path.splitext( fileName )
     if( exte.upper()==".dxf".upper()):
         dxf=Dxf(self.__kernel,fileName)
         dxf.exportEntitis()
 def saveFile(self, fileName):
     """
         save the current file in a non pythoncad Format
     """
     path, exte = os.path.splitext(fileName)
     if (exte.upper() == ".dxf".upper()):
         dxf = Dxf(self.__kernel, fileName)
         dxf.exportEntitis()
 def openFile(self,fileName):
     """
        Open a generic file
     """
     path,exte=os.path.splitext( fileName )
     if( exte.upper()==".dxf".upper()):
         dxf=Dxf(self.__kernel,fileName)
         dxf.importEntitis()
         if not dxf.getError() is None:
             self.__errorList=dxf.getError()
             raise DxfReport("Dxf report have to be shown some error/warning in import dxf")
     else:
         raise  DxfUnsupportedFormat("Format %s not supported"%str(exte))
 def openFile(self, fileName):
     """
        Open a generic file
     """
     path, exte = os.path.splitext(fileName)
     if (exte.upper() == ".dxf".upper()):
         dxf = Dxf(self.__kernel, fileName)
         dxf.importEntitis()
         if not dxf.getError() is None:
             self.__errorList = dxf.getError()
             raise DxfReport, "Dxf report have to be shown some error/warning in import dxf"
     else:
         raise DxfUnsupportedFormat, "Format %s not supported" % str(exte)