measure.inx revision e7bafc69cc367122b93ff2659a151d2792e387a7
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<?xml version="1.0" encoding="UTF-8"?>
39135a3e07243519dbe40a68e86a7ef524eb3f1bmfloryan<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <_name>Measure Path</_name>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <id>com.njhurst.filter.measure_length</id>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <dependency type="executable" location="extensions">measure.py</dependency>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <dependency type="executable" location="extensions">inkex.py</dependency>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="tab" type="notebook">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <page name="measure" _gui-text="Measure">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="type" type="enum" _gui-text="Measurement Type: ">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="length">Length</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="area">Area</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="fontsize" type="int" min="1" max="1000" _gui-text="Font size [px]">12</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="offset" type="float" min="-10000" max="10000" _gui-text="Offset [px]">-6</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="precision" type="int" min="0" max="25" _gui-text="Precision">2</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="scale" type="float" min="1e-8" max="1e10" _gui-text="Scale Factor (Drawing:Real Length) = 1:">1</param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <!--<param name="orient" type="boolean" _gui-text="Keep text orientation upright">true</param>-->
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <!--<param name="unit" type="string" _gui-text="Unit {km|m|cm|mm|in|px|pt}">mm</param>-->
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <param name="unit" type="enum" _gui-text="Length Unit: ">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="px">px</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="pt">pt</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="in">in</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="ft">ft</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="yd">yd</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="mm">mm</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="cm">cm</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="m">m</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <item value="km">km</item>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </page>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <page name="desc" _gui-text="Help">
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <_param name="measurehelp" type="description" xml:space="preserve">This effect measures the length, or area, of the selected path and adds it as a text-on-path object with the selected unit.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * The number of significant digits can be controlled by the Precision field.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * The Offset field controls the distance from the text to the path.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * The Scale factor can be used to make measurements in scaled drawings. For example, if 1 cm in the drawing equals 2.5 m in the real world, Scale must be set to 250.
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner * When calculating area, the result should be precise for polygons and Bezier curves. If a circle is used, the area may be too high by as much as 0.03%.</_param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </page>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </param>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <effect>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <object-type>path</object-type>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <effects-menu>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <submenu _name="Visualize Path"/>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </effects-menu>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </effect>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <script>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner <command reldir="extensions" interpreter="python">measure.py</command>
e7bafc69cc367122b93ff2659a151d2792e387a7Alvin Penner </script>
f3d3661f257ff23dc3b673e926afe4dc6547d59anjh</inkscape-extension>