svg2shenzhen icon indicating copy to clipboard operation
svg2shenzhen copied to clipboard

Edge.Cuts flatten Bezier issue

Open GuillermoTell opened this issue 5 years ago • 3 comments

Hi, I don't know why, but I get this message:

Traceback (most recent call last): File "export.py", line 750, in _main() File "export.py", line 746, in _main e.run() File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run self.save_raw(self.effect()) File "export.py", line 323, in effect self.processExportLayer() File "export.py", line 468, in processExportLayer kicad_edgecut_string = self.exportEdgeCut(kicad_mod = options.filetype == "kicad_module") File "export.py", line 659, in exportEdgeCut y = (path[1][1]) IndexError: list index out of range

I'm using a simple rectangle as Edge.Cuts, already transformed into path. However, if I check the flatten Bezier option every time, it works.

GuillermoTell avatar Sep 05 '20 17:09 GuillermoTell

do you have example svg file ?

badgeek avatar Sep 06 '20 04:09 badgeek

Here it is: Test.zip

GuillermoTell avatar Sep 07 '20 10:09 GuillermoTell

Here is your updated Test.zip. I am able to export properly.

  1. I am not sure if you should do F.Mask-inverted you can leave F.Mask as it is.
  2. You must do Prepare document first to make sure your drawing is within that area only.
  3. You should add some more nodes to the path so lines are smooth when you see it on KiCad.

if I check the flatten Bezier option every time, it works.

I have exported without using that flatten Bezier. Added more nodes. -- You can do that from Extensions-->Modified Path-->Add Nodes...

Here...

image

and then Apply

image

Here is your Test.zip. Test.zip

iharshadec avatar Sep 08 '20 03:09 iharshadec