# Path: importerUtils.py
# def canImport():
# 	global _can_import
# 	return _can_import
# 
# def logInfo(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkLogging", False)): _log("logInfo",    Console.PrintMessage, msg, args)
# 
# def logWarning(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkWarning", False)): _log("logWarning", Console.PrintWarning, msg, args)
# 
# def logError(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkError", True)):    _log("logError",   Console.PrintError,   msg, args)
# 
# def logAlways(msg, *args):
# 	_log("logAlways", Console.PrintMessage, msg, args)
# 
# def getAuthor():
# 	return _author
# 
# def getComment():
# 	global _comment
# 	return _comment
# 
# def getLastModifiedBy():
# 	global _lastModifiedBy
# 	return _lastModifiedBy
# 
# def setThumbnail(thumbnail):
# 	global _thumbnail
# 	_thumbnail = thumbnail
# 	return
# 
# Path: importerFreeCAD.py
# def createGroup(name):
# 	return newObject('App::DocumentObjectGroup', name)


import os, sys, FreeCAD, FreeCADGui, importerSAT, importerDXF, Import_IPT, importerF3D
import Acis, importerClasses
from importerUtils   import canImport, logInfo, logWarning, logError, logAlways, getAuthor, getComment, getLastModifiedBy, setThumbnail
from olefile         import isOleFile
from importerFreeCAD import createGroup
from pivy            import coin

# -*- coding: utf-8 -*-

'''
importer.py:
Collection of 3D Mesh importers
'''


__author__     = "Jens M. Plonka"
__copyright__  = 'Copyright 2018, Germany'
__url__        = "https://www.github.com/jmplonka/InventorLoader"

def decode(name):
	"decodes encoded strings"
	decodedName = name
	try:
		decodedName = name.encode(sys.getfilesystemencoding()).decode("utf8")
	except:

# Path: importerUtils.py
# def canImport():
# 	global _can_import
# 	return _can_import
# 
# def logInfo(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkLogging", False)): _log("logInfo",    Console.PrintMessage, msg, args)
# 
# def logWarning(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkWarning", False)): _log("logWarning", Console.PrintWarning, msg, args)
# 
# def logError(msg, *args):
# 	if (__prmPrefOW__.GetBool("checkError", True)):    _log("logError",   Console.PrintError,   msg, args)
# 
# def logAlways(msg, *args):
# 	_log("logAlways", Console.PrintMessage, msg, args)
# 
# def getAuthor():
# 	return _author
# 
# def getComment():
# 	global _comment
# 	return _comment
# 
# def getLastModifiedBy():
# 	global _lastModifiedBy
# 	return _lastModifiedBy
# 
# def setThumbnail(thumbnail):
# 	global _thumbnail
# 	_thumbnail = thumbnail
# 	return
# 
# Path: importerFreeCAD.py
# def createGroup(name):
# 	return newObject('App::DocumentObjectGroup', name)


# Path: importerIL.py
import os, sys, FreeCAD, FreeCADGui, importerSAT, importerDXF, Import_IPT, importerF3D
import Acis, importerClasses
from importerUtils   import canImport, logInfo, logWarning, logError, logAlways, getAuthor, getComment, getLastModifiedBy, setThumbnail
from olefile         import isOleFile
from importerFreeCAD import createGroup
from pivy            import coin

# -*- coding: utf-8 -*-

'''
importer.py:
Collection of 3D Mesh importers
'''


__author__     = "Jens M. Plonka"
__copyright__  = 'Copyright 2018, Germany'
__url__        = "https://www.github.com/jmplonka/InventorLoader"

def decode(name):
	"decodes encoded strings"
	decodedName = name
	try:
		decodedName = name.encode(sys.getfilesystemencoding()).decode("utf8")
	except:

		logWarning("    Couldn't determine character encoding for filename - using unencoded!\n")
