brad / Inkscape-OpenSCAD-DXF-Export

Inkscape plugin that exports DXF files usable by OpenSCAD
GNU General Public License v3.0
77 stars 21 forks source link

Plugin no longer seems compatible with inkscape version 1.0 #22

Open NuclearLighthouseStudios opened 3 years ago

NuclearLighthouseStudios commented 3 years ago

When trying to export from inkscape version 1.0 the following error is shown and no output file is produced.

openscad_dxf.py:287: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
  OpenSCADDXFEffect().affect()
/home/sly/.config/inkscape/extensions/openscad_dxf/object2path.py:48: DeprecationWarning: Effect.current_layer is now a method in the svg. Use `self.svg.get_current_layer()` instead.
  for node in self.current_layer.iterdescendants():
Traceback (most recent call last):
  File "openscad_dxf.py", line 287, in <module>
    OpenSCADDXFEffect().affect()
  File "/usr/share/inkscape/extensions/inkex/deprecated.py", line 180, in affect
    return self.run(args=args)
  File "/usr/share/inkscape/extensions/inkex/base.py", line 123, in run
    self.save_raw(self.effect())
  File "openscad_dxf.py", line 158, in effect
    object2path.ObjectToPath.effect(self)
  File "/home/sly/.config/inkscape/extensions/openscad_dxf/object2path.py", line 51, in effect
    self.call_inkscape("ObjectToPath", objects)
  File "/home/sly/.config/inkscape/extensions/openscad_dxf/inkinkex.py", line 165, in call_inkscape
    self.parse(tmp)
AttributeError: 'OpenSCADDXFEffect' object has no attribute 'parse'

I'm running the latest version of the plugin with Inkscape 1.0 on Arch Linux.

mennucc commented 3 years ago

Let me add that recent openscad can read SVG files (with some limitations)