fix in living hinges; updated jtech photonics laser tool

This commit is contained in:
Mario Voigt 2021-07-05 17:45:45 +02:00
parent 0405bfd53a
commit 1755274877
3 changed files with 336 additions and 1454 deletions

View File

@ -441,10 +441,10 @@ class BuxtronixLivingHinges(inkex.EffectExtension):
for elem in self.svg.selected.values():
# Determine width and height based on the selected object's bounding box.
bbox = elem.bounding_box()
self.options.width = bbox.width
self.options.height = bbox.height
x = bbox.x.minimum
y = bbox.y.minimum
self.options.width = self.svg.unittouu(bbox.width)
self.options.height = self.svg.unittouu(bbox.height)
x = self.svg.unittouu(bbox.x.minimum)
y = self.svg.unittouu(bbox.y.minimum)
draw_one(x, y)
BuxtronixLivingHinges().run()

View File

@ -2,30 +2,71 @@
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>J Tech Photonics Laser Tool</name>
<id>fablabchemnitz.de.j_tech_photonics_laser_tool</id>
<param name="laser-command" type="string" gui-text="Laser ON Command:">M03</param>
<param name="laser-off-command" type="string" gui-text="Laser OFF Command:">M05</param>
<param name="travel-speed" type="int" min="0" max="15000" gui-text="Travel Speed (mm/min or in/min):">3000</param>
<param name="laser-speed" type="int" min="0" max="15000" gui-text="Laser Speed (mm/min or in/min):">750</param>
<param name="laser-power" type="int" min="0" max="20000" gui-text="Laser Power S# (0-255 or 0-12000):">255</param>
<param name="power-delay" type="float" min="0" max="1000" gui-text="Power-On Delay (ms or s):">0</param>
<param name="passes" type="int" min="1" max="100" gui-text="Passes:">1</param>
<param name="pass-depth" type="float" min="0" max="10" gui-text="Pass Depth (mm or in):">1</param>
<param name="directory" type="string" gui-text="Directory:"></param>
<param name="filename" type="string" gui-text="Filename:">output.gcode</param>
<param name="add-numeric-suffix-to-filename" type="bool" gui-text="Add numeric suffix to filename">true</param>
<param name="unit" type="optiongroup" appearance="combo" gui-text="All Units (mm or in):">
<option value="G21 (All units in mm)">mm</option>
<option value="G20 (All units in inches)">in</option>
<param name="tabs" type="notebook">
<page name="important_settings" gui-text="Important Settings">
<param name="unit" type="optiongroup" appearance="combo" gui-text="Unit of Measurement">
<option value="mm">millimeters</option>
<option value="in">inches</option>
</param>
<param name="travel_speed" type="float" min="0" max="999999" gui-text="Travel Speed (unit/min)">3000</param>
<param name="cutting_speed" type="float" min="0" max="999999" gui-text="Cutting Speed (unit/min)">750</param>
<spacer />
<param name="passes" type="int" min="1" max="999999" gui-text="Passes">1</param>
<param name="pass_depth" type="float" min="0" max="999999" gui-text="Pass Depth (unit)">1</param>
<spacer />
<param name="directory" type="path" gui-text="Output Directory" mode="folder">-- Choose Output Directory --</param>
<param name="filename" type="string" gui-text="Filename">output.gcode</param>
<param name="filename_suffix" type="boolean" gui-text="Add Numeric Suffix to Filename">true</param>
</page>
<page name="advanced_settings" gui-text="Advanced Settings">
<param name="tool_power_command" type="string" gui-text="Tool Power Command">M3 S255;</param>
<param name="tool_off_command" type="string" gui-text="Tool Off Command">M5;</param>
<param name="dwell_time" type="float" gui-text="Dwell Time Before Moving (ms)">0</param>
<spacer />
<param name="draw_debug" type="boolean" gui-text="Draw Debug">true</param>
<param name="debug_line_width" type="float" gui-text="Debug Line Width (px)">0.5</param>
<param name="debug_arrow_scale" type="float" min="0" gui-text="Debug Arrow Scale">1.0</param>
<spacer />
<param name="approximation_tolerance" type="string" appearance="full" gui-text="Approximation Tolerance (+-unit) [tip, stay between 10^-4 and 1]">0.01</param>
</page>
<page name="header_footer_settings" gui-text="Custom Header and Footer">
<spacer />
<param name="header_path" type="path" mode="file" gui-text="Custom G-code Header Filepath" />
<param name="footer_path" type="path" mode="file" gui-text="Custom G-code Footer Filepath" />
<spacer />
<param name="do_z_axis_start" type="boolean" gui-text="Set Z-Axis Start Position">false</param>
<param name="z_axis_start" type="float" min="0" max="999999" gui-text="Absolute Z-Axis Start Position (unit)">0</param>
<spacer />
<param name="move_to_origin_end" type="boolean" gui-text="Move To Origin When Done">false</param>
<spacer />
<param name="do_laser_off_start" type="boolean" gui-text="Turn Laser Off Before a Job">true</param>
<param name="do_laser_off_end" type="boolean" gui-text="Turn Laser Off After a Job">true</param>
</page>
<page name="scaling" gui-text="Coordinate System and Transformations">
<param name="machine_origin" type="optiongroup" appearance="combo" gui-text="Machine Origin">
<option value="bottom-left">bottom-left</option>
<option value="center">center</option>
<option value="top-left">top-left</option>
</param>
<param name="invert_y_axis" type="boolean" gui-text="Invert Y-Axis">false</param>
<param name="bed_width" type="float" min="0" max="999999" gui-text="Bed X Width (unit)">200</param>
<param name="bed_height" type="float" min="0" max="999999" gui-text="Bed Y Length (unit)">200</param>
<spacer />
<param name="horizontal_offset" type="float" min="-999999" max="999999" gui-text="Gcode X Offset (unit)">0</param>
<param name="vertical_offset" type="float" min="-999999" max="999999" gui-text="Gcode Y Offset (unit)">0</param>
<param name="scaling_factor" type="float" min="-999999" max="999999" gui-text="Gcode Scaling Factor">1</param>
</page>
</param>
<effect>
<object-type>path</object-type>
<effects-menu>
<submenu name="FabLab Chemnitz">
<submenu name="Import/Export/Transfer"/>
</submenu>
<submenu name="Import/Export/Transfer"/>
</submenu>
</effects-menu>
</effect>
<script>
<command location="inx" interpreter="python">j_tech_photonics_laser_tool.py</command>
</script>
</inkscape-extension>