summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7c592d)
raw | patch | inline | side by side (parent: a7c592d)
author | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 1 Aug 2009 12:31:38 +0000 (12:31 +0000) | ||
committer | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 1 Aug 2009 12:31:38 +0000 (12:31 +0000) |
share/extensions/dxf_input.inx | patch | blob | history | |
share/extensions/dxf_input.py | patch | blob | history |
index a1410fd3b9c04e41f8eb4e0f1214038be7c698e3..5ad63c565d4f1274547a22ccf4a1ff20b9d7a3da 100644 (file)
<id>org.inkscape.input.dxf</id>
<dependency type="executable" location="extensions">dxf_input.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
- <param name="auto" type="boolean" _gui-text="Use automatic scaling to size A4">true</param>
- <param name="scale" type="string" _gui-text="Or, use manual scale factor">1.0</param>
- <param name="sep1" type="description">-------------------------------------------------------------------------</param>
- <param name="encoding" type="enum" _gui-text="Character Encoding">
- <item value="latin_1">Latin 1</item>
- <item value="cp1250">CP 1250</item>
- <item value="cp1252">CP 1252</item>
- <item value="utf_8">UTF 8</item>
+ <param name="tab" type="notebook">
+ <page name="options" _gui-text="Options">
+ <param name="auto" type="boolean" _gui-text="Use automatic scaling to size A4">true</param>
+ <param name="scale" type="string" _gui-text="Or, use manual scale factor">1.0</param>
+ <param name="sep1" type="description">-------------------------------------------------------------------------</param>
+ <param name="encoding" type="enum" _gui-text="Character Encoding">
+ <item value="latin_1">Latin 1</item>
+ <item value="cp1250">CP 1250</item>
+ <item value="cp1252">CP 1252</item>
+ <item value="utf_8">UTF 8</item>
+ </param>
+ </page>
+ <page name="help" _gui-text="Help">
+ <_param name="inputhelp" type="description">- AutoCAD Release 13 and newer.
+- assume dxf drawing is in mm.
+- assume svg drawing is in pixels, at 90 dpi.
+- layers are preserved only on File->Open, not Import.
+- limited support for BLOCKS, use AutoCAD Explode Blocks instead, if needed.
+ </_param>
+ </page>
</param>
<input>
<extension>.dxf</extension>
<mimetype>image/x-svgz</mimetype>
- <_filetypename>AutoCAD DXF (*.dxf)</_filetypename>
+ <_filetypename>AutoCAD DXF R13 (*.dxf)</_filetypename>
<_filetypetooltip>Import AutoCAD's Document Exchange Format</_filetypetooltip>
</input>
<script>
index fcf5125afe8b13b988aa717ed9bdc84a9768a22b..7c5e4d0f91b390a80df04e02499879a34758622d 100644 (file)
@@ -302,6 +302,8 @@ parser = inkex.optparse.OptionParser(usage="usage: %prog [options] SVGfile", opt
parser.add_option("--auto", action="store", type="inkbool", dest="auto", default=True)
parser.add_option("--scale", action="store", type="string", dest="scale", default="1.0")
parser.add_option("--encoding", action="store", type="string", dest="input_encode", default="latin_1")
+parser.add_option("--tab", action="store", type="string", dest="tab", default="Options")
+parser.add_option("--inputhelp", action="store", type="string", dest="inputhelp", default="")
(options, args) = parser.parse_args(inkex.sys.argv[1:])
doc = inkex.etree.parse(StringIO('<svg xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"></svg>'))
desc = inkex.etree.SubElement(doc.getroot(), 'desc', {})