I have a lot of issues getting Adobe Illustrator to output SVG that works well with LaserWeb 4.0.991. Example:
- Generate box SVG via boxes.py (link below hopefully), save to file.
- This file opens fine in LaserWeb, with no warnings. But if I want to make any changes…
- Open file in Illustrator.
- Change something, e.g. select all and change stroke colour to red.
- Save as a new file: SVG 1.1, CSS Properties = Style Elements (as per wiki).
- 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! 
Btw, I know LW load the file, but clicking generate and will start complaining a lot 
From further Googling I found this: https://darklylabs.zendesk.com/hc/en-us/community/posts/206123108/comments/115000442212.
The possible solutions seem to be:
-
Open up the file in Illustrator, select each shape, right click and “Release Compound Path”, then right-click and select “Join”.
-
Use a different box generator.