This is a Document class Save the document to disk Save the document under a new name to disk Save a copy of the document under a new name to disk Load the document from the given path Restore the document from disk Merges this document with another project file Export the dependencies of the objects as graph Open a new Undo/Redo transaction. Abort an Undo/Redo transaction (rollback) Commit an Undo/Redo transaction Add an object with given type and name to the document Remove an object from the document copyObject(object, bool with_dependencies = False, bool ignored_argument = False) Copy an object from another document to this document. If with_dependencies is True, all objects this object depends on are copied too. moveObject(object, bool with_dependencies = False) Transfers an object from another document to this document. If with_dependencies is True, all objects this object depends on are transferred too. Undo one transaction Redo a previosly undid transaction Clear the undo stack of the document Recompute the document Return the object with the given name Return the objects with the given label name. NOTE: It's possible that several objects have the same label name. findObjects([string (type)], [string (name)]) -> list Return a list of objects that match the specified type and name. Both parameters are optional. A list of supported types of objects Returns a file name with path in the temp directory of the document. The dependency graph as GraphViz text The active object of the document The list of object handled by this document The Undo mode of the Document (0 = no Undo, 1 = Undo/Redo) The size of the Undo stack in byte Number of possible Undos Number of possible Redos A list of Undo names A List of Redo names The internal name of the document