summaryrefslogtreecommitdiffstats
path: root/share/extensions/dxf_input.inx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /share/extensions/dxf_input.inx
parentInitial commit. (diff)
downloadinkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.tar.xz
inkscape-12fc8abae6d434cac7670a59ed3a67301cc2eb10.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/dxf_input.inx')
-rw-r--r--share/extensions/dxf_input.inx48
1 files changed, 48 insertions, 0 deletions
diff --git a/share/extensions/dxf_input.inx b/share/extensions/dxf_input.inx
new file mode 100644
index 0000000..1cb9e11
--- /dev/null
+++ b/share/extensions/dxf_input.inx
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>DXF Input</name>
+ <id>org.inkscape.input.dxf_input</id>
+ <param name="tab" type="notebook">
+ <page name="options" gui-text="Options">
+ <param name="scalemethod" type="optiongroup" appearance="radio" gui-text="Method of Scaling:">
+ <option value="manual">Manual scale</option>
+ <option value="auto">Automatic scaling to size A4</option>
+ <option value="file">Read from file</option>
+ </param>
+ <param name="scale" type="string" gui-text="Manual scale factor:">1.0</param>
+ <param name="xmin" type="string" gui-text="Manual x-axis origin (mm):">0.0</param>
+ <param name="ymin" type="string" gui-text="Manual y-axis origin (mm):">0.0</param>
+ <param name="textscale" type="string" gui-text="Text scale factor:">1.0</param>
+ <param name="gcodetoolspoints" type="bool" gui-text="Gcodetools compatible point import">false</param>
+ <spacer/><separator/><spacer/>
+ <param name="encoding" type="optiongroup" appearance="combo" gui-text="Character encoding:">
+ <option translatable="no" value="latin_1">Latin 1</option>
+ <option translatable="no" value="cp1250">CP 1250</option>
+ <option translatable="no" value="cp1252">CP 1252</option>
+ <option translatable="no" value="cp932">Shift JIS</option>
+ <option translatable="no" value="utf_8">UTF-8</option>
+ </param>
+ <param name="font" type="string" gui-text="Text Font:">Arial</param>
+ </page>
+ <page name="help" gui-text="Help">
+ <label xml:space="preserve">- AutoCAD Release 13 and newer.
+- for manual scaling, assume dxf drawing is in mm.
+- assume svg drawing is in pixels, at 96 dpi.
+- scale factor and origin apply only to manual scaling.
+- to determine text scale factor cf. dxf_input_text_scale_factor.svg
+- 'Automatic scaling' will fit the width of an A4 page.
+- 'Read from file' uses the variable $MEASUREMENT.
+- layers are preserved only on File->Open, not Import.
+- limited support for BLOCKS, use AutoCAD Explode Blocks instead, if needed.</label>
+ </page>
+ </param>
+ <input>
+ <extension>.dxf</extension>
+ <mimetype>image/x-svgz</mimetype>
+ <filetypename>AutoCAD DXF R13 (*.dxf)</filetypename>
+ <filetypetooltip>Import AutoCAD's Document Exchange Format</filetypetooltip>
+ </input>
+ <script>
+ <command location="inx" interpreter="python">dxf_input.py</command>
+ </script>
+</inkscape-extension>