SVGs with layers don't work

Home Evil Mad Scientist Forums AxiDraw SVGs with layers don't work

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #26884

    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 "", line 2719, in <module>
      File "/Applications/", line 265, in affect
      File "/Applications/", line 207, in getposinlayer
        x = self.unittouu( xattr[0] + 'px' )
      File "/Applications/", line 351, in unittouu
        return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
      File "/Applications/", line 304, in getDocumentUnit
        p = param.match(svgwidth)
    TypeError: expected string or buffer

    Files without layers seem to work fine.
    I’m using the V3/A3 with Inkscape 0.91 on Mac OS X 10.14 Mojave

    Windell Oskay

    The 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.