I have a lot of issues getting Adobe Illustrator to output SVG that works

I have a lot of issues getting Adobe Illustrator to output SVG that works well with LaserWeb 4.0.991. Example:

  1. Generate box SVG via boxes.py (link below hopefully), save to file.
  2. This file opens fine in LaserWeb, with no warnings. But if I want to make any changes…
  3. Open file in Illustrator.
  4. Change something, e.g. select all and change stroke colour to red.
  5. Save as a new file: SVG 1.1, CSS Properties = Style Elements (as per wiki).
  6. Open this file in LaserWeb.

Desired outcome: No issues, same as step 2 above.

Actual outcome: “File has minor issues”.

The file I get out of Illustrator can be found here: https://pastebin.com/8ZrWPHb0.

Any hints or tips greatly appreciated. Thanks.

http://Boxes.py generates a lot of collinear vectors you should clean on AI before import on LW. Check for duplicated lines on AI first.

@Jorge_Robles Thanks for your response Jorge. How would one best go about identifying duplicated lines in AI? I’m very much a beginner; I don’t even know what I should be Googling. Also I should reiterate that the SVG directly out of http://boxes.py loads into LaserWeb without issues - it’s only when I save that SVG from AI that the problems start.

Regrettably there’s only a way i know to identify collinear… Mousework! :frowning:

Btw, I know LW load the file, but clicking generate and will start complaining a lot :slight_smile:

From further Googling I found this: https://darklylabs.zendesk.com/hc/en-us/community/posts/206123108/comments/115000442212.

The possible solutions seem to be:

  1. Open up the file in Illustrator, select each shape, right click and “Release Compound Path”, then right-click and select “Join”.

  2. Use a different box generator.