summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28f9a94)
raw | patch | inline | side by side (parent: 28f9a94)
author | alvinpenner <alvinpenner@users.sourceforge.net> | |
Mon, 10 Aug 2009 01:29:14 +0000 (01:29 +0000) | ||
committer | alvinpenner <alvinpenner@users.sourceforge.net> | |
Mon, 10 Aug 2009 01:29:14 +0000 (01:29 +0000) |
share/extensions/dxf_outlines.inx | patch | blob | history | |
share/extensions/dxf_outlines.py | patch | blob | history |
index 7d09fd1e9c68d26f2c63016f7918e8c8c9f75c5c..a557deb94155e9711d5dc37ef8f81a69888c7ace 100644 (file)
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
- <_name>Desktop Cutting Plotter</_name>
- <id>org.ekips.output.dxf_outlines</id>
+ <_name>Desktop Cutting Plotter</_name>
+ <id>org.ekips.output.dxf_outlines</id>
<dependency type="extension">org.inkscape.output.svg.inkscape</dependency>
<dependency type="executable" location="extensions">dxf_outlines.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
- <param name="ROBO" type="boolean" _gui-text="ROBO-Master output">false</param>
- <output>
- <extension>.dxf</extension>
- <mimetype>image/dxf</mimetype>
- <_filetypename>Desktop Cutting Plotter (*.dxf)</_filetypename>
- <_filetypetooltip>Desktop Cutting Plotter</_filetypetooltip>
- <dataloss>true</dataloss>
- </output>
- <script>
- <command reldir="extensions" interpreter="python">dxf_outlines.py</command>
- <helper_extension>org.inkscape.output.svg.inkscape</helper_extension>
- </script>
+ <param name="tab" type="notebook">
+ <page name="options" _gui-text="Options">
+ <param name="ROBO" type="boolean" _gui-text="enable ROBO-Master output">false</param>
+ </page>
+ <page name="help" _gui-text="Help">
+ <_param name="inputhelp" type="description">- AutoCAD Release 13 format.
+- assume svg drawing is in pixels, at 90 dpi.
+- assume dxf drawing is in mm.
+- only LWPOLYLINE and SPLINE elements are supported.
+- ROBO-Master option is a specialized spline readable only by ROBO-Master and AutoDesk viewers, not Inkscape.
+ </_param>
+ </page>
+ </param>
+ <output>
+ <extension>.dxf</extension>
+ <mimetype>image/dxf</mimetype>
+ <_filetypename>Desktop Cutting Plotter (R13) (*.dxf)</_filetypename>
+ <_filetypetooltip>Desktop Cutting Plotter</_filetypetooltip>
+ <dataloss>true</dataloss>
+ </output>
+ <script>
+ <command reldir="extensions" interpreter="python">dxf_outlines.py</command>
+ <helper_extension>org.inkscape.output.svg.inkscape</helper_extension>
+ </script>
</inkscape-extension>
index 3888bc7e3fe75042abba59ae0964dcc88d2ece00..ecdc6ce40f481495f14d807c9107f18193585ca6 100755 (executable)
def __init__(self):
inkex.Effect.__init__(self)
self.OptionParser.add_option("-R", "--ROBO", action="store", type="string", dest="ROBO")
+ self.OptionParser.add_option("--tab", action="store", type="string", dest="tab")
+ self.OptionParser.add_option("--inputhelp", action="store", type="string", dest="inputhelp")
self.dxf = []
self.handle = 255 # handle for DXF ENTITY
self.csp_old = [[0.0,0.0]]*4 # previous spline