Commit 1706b528 authored by sumpfralle's avatar sumpfralle

added support for EPS/PS contour files


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@802 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 35d040a2
Version 0.4.1 - UNRELEASED
* added support for EPS/PS contour files
Version 0.4 - 2010-10-19
* use all available CPU cores for parallel processing
* this requires at least Python 2.6 or the "python-multiprocessing" package
......
......@@ -69,9 +69,10 @@ GTKMENU_FILE = "menubar.xml"
HELP_WIKI_URL = "http://sourceforge.net/apps/mediawiki/pycam/index.php?title=%s"
FILTER_GCODE = (("GCode files", ("*.ngc", "*.nc", "*.gc", "*.gcode")),)
FILTER_MODEL = (("All supported model filetypes", ("*.stl", "*.dxf", "*.svg")),
FILTER_MODEL = (("All supported model filetypes",
("*.stl", "*.dxf", "*.svg", "*.eps", "*.ps")),
("STL models", "*.stl"), ("DXF contours", "*.dxf"),
("SVG contours", "*.svg"))
("SVG contours", "*.svg"), ("PS contours", ("*.eps", "*.ps")))
FILTER_CONFIG = (("Config files", "*.conf"),)
FILTER_EMC_TOOL = (("EMC tool files", "*.tbl"),)
......
......@@ -27,6 +27,7 @@ import pycam.Utils.log
import pycam.Importers.DXFImporter
import pycam.Importers.STLImporter
import pycam.Importers.SVGImporter
import pycam.Importers.PSImporter
import os
......@@ -46,8 +47,12 @@ def detect_file_type(filename):
return ("dxf", pycam.Importers.DXFImporter.import_model)
elif filename.lower().endswith(".svg"):
return ("svg", pycam.Importers.SVGImporter.import_model)
elif filename.lower().endswith(".eps") \
or filename.lower().endswith(".ps"):
return ("ps", pycam.Importers.PSImporter.import_model)
else:
log.error("Importers: Failed to detect the model type of '%s'." \
% filename + " Is the file extension (stl/dxf/svg) correct?")
log.error(("Importers: Failed to detect the model type of '%s'. " \
+ "Is the file extension (stl/dxf/svg/eps/ps) correct?") \
% filename)
return failure
......@@ -22,5 +22,5 @@ along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
__all__=["Cutters","Exporters","Geometry","Gui","Importers","PathGenerators","PathProcessors","Utils"]
VERSION = "0.4"
VERSION = "0.4.1-svn"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment