Exporting graphs or layers via phyton

Mexx
2013-07-01
2013-07-02
  • Mexx
    Mexx
    2013-07-01

    Hello,
    I have got a problem with the export functions of scidavis
    If I’m trying to use the functions:

    l.exportToSVG(filename)
    l.exportToEPS(filename)

    For layers or Graphs I get an error message:
    'Layer'/'Graph'object has no attribute 'exportToEPS'/'exportToSVG'

    l.print()
    Here I get:
    Syntax error

    The last function I tried was:
    l.exportImage(filename, filetype="PNG", quality=100, transparent=False)
    If im typing a filename=”xyz” or, “xyz” I get: exportImage() takes no keyword arguments
    If I I don’t use “” I get: name 'xyz' is not defined

    Maybe you can help me with those functions.
    Greeting
    Simon

     
  • Mexx
    Mexx
    2013-07-02

    In case someone else has a similar problem.
    In the manual the functions are slightly wrong.
    There are two functions exporting layers and the file type has to be in the name.

    For example:

    l.exportImage("ima.png", 100,False)
    l.exportVector("vec.pdf", 96, True)

    Greetings Simon