Diagram constructor

Diagram()

def __init__(self):
    ...

Diagram(filename)

Public class constructor, loads the diagram from the file.

def __init__(self, filename):
    ...
ParameterTypeDescription
filenamestrThe file name.

Diagram(stream)

Public class constructor, loads the diagram from the stream.

def __init__(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe data stream.

Diagram(filename, format)

Public class constructor, loads the diagram from the file using predefined format.

def __init__(self, filename, format):
    ...
ParameterTypeDescription
filenamestrThe file name.
formatLoadFileFormatThe file format.

Diagram(stream, format)

Public class constructor, loads the diagram from the stream using predefined format.

def __init__(self, stream, format):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe data stream.
formatLoadFileFormatThe data LoadFileFormat.

Diagram(filename, options)

Public class constructor, loads the diagram from the file using predefined load file options.

def __init__(self, filename, options):
    ...
ParameterTypeDescription
filenamestrThe file name.
optionsLoadOptionsThe data LoadOptions.

Diagram(stream, options)

Public class constructor, loads the diagram from the stream using predefined load file options.

def __init__(self, stream, options):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe data stream.
optionsLoadOptionsThe data LoadOptions.

See Also