Home › Evil Mad Scientist Forums › AxiDraw › SVGs with layers don't work
- This topic has 1 reply, 2 voices, and was last updated 7 years, 2 months ago by Windell Oskay.
-
AuthorPosts
-
October 4, 2018 at 8:44 pm #26884jcharneyParticipant
I’m getting errors whenever layers are present in my svg file, whether they’re created in Inkscape or elsewhere (Adobe Illustrator). I tried multiple layer methods (using the syntax as well as hiding layers). If I do a file with no layers everything is fine. I get this message whenever I try to do anything in the Axidraw extension, even just raising or lowering the pen:
Traceback (most recent call last): File "axidraw.py", line 2719, in <module> e.affect() File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 265, in affect self.getposinlayer() File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 207, in getposinlayer x = self.unittouu( xattr[0] + 'px' ) File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 351, in unittouu return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()]) File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex.py", line 304, in getDocumentUnit p = param.match(svgwidth) TypeError: expected string or bufferFiles without layers seem to work fine.
I’m using the V3/A3 with Inkscape 0.91 on Mac OS X 10.14 MojaveOctober 5, 2018 at 5:35 pm #26885Windell OskayKeymasterThe error appears to indicate (though not very clearly) that the document does not have physical units set. Files that you plot are required to have physical units (typically inches or mm), and trying to plot files constructed for screen display can sometimes give unpredictable results.
I am not certain that this issue is (or is not) directly related to the layers issue.
As a first suggestion, please try plotting one or more layers from the “birthdayCard_outlines.svg” example file, just without pen or paper. You can find that file in our standard example set download, in the “from launch video” folder.
If that file plots correctly, it would suggest that there is an issue specific to something in your file. If it does not, then there’s likely something amiss in your software setup. In either case, it should point the way forwards.
-
AuthorPosts
- You must be logged in to reply to this topic.