This is a Document class show(objName) -> None Show an object. objName : str Name of the `Gui.ViewProvider` to show. hide(objName) -> None Hide an object. objName : str Name of the `Gui.ViewProvider` to hide. setPos(objName, matrix) -> None Set the position of an object. objName : str Name of the `Gui.ViewProvider`. matrix : Base.Matrix Transformation to apply on the object. setEdit(obj, mod=0, subName) -> bool Set an object in edit mode. obj : str, App.DocumentObject, Gui.ViewPrivider Object to set in edit mode. mod : int Edit mode. subName : str Subelement name. Optional. getInEdit() -> Gui.ViewProviderDocumentObject or None Returns the current object in edit mode or None if there is no such object. resetEdit() -> None End the current editing. addAnnotation(annoName, fileName, modName) -> None Add an Inventor object from a file. annoName : str Annotation name. fileName : str File name. modName : str Display mode name. Optional. update() -> None Update the view representations of all objects. getObject(objName) -> object or None Return the object with the given name. If no one exists, return None. ObjName : str Object name. activeObject() -> object or None The active object of the document. Deprecated, use ActiveObject. activeView() -> object or None The active view of the document. Deprecated, use ActiveView. mdiViewsOfType(type) -> list of MDIView Return a list of mdi views of a given type. type : str Type name. save() -> bool Attempts to save the document saveAs() -> bool Attempts to save the document under a new name sendMsgToViews(msg) -> None Send a message to all views of the document. msg : str mergeProject(fileName) -> None Merges this document with another project file. fileName : str File name. toggleTreeItem(obj, mod=0, subName) -> None Change TreeItem of a document object. obj : App.DocumentObject mod : int Item mode. 0: Toggle, 1: Collapse, 2: Expand, 3: Expand path. subName : str Subelement name. Optional. scrollToTreeItem(obj) -> None Scroll the tree view to the item of a view object. obj : Gui.ViewProviderDocumentObject toggleInSceneGraph(obj) -> None Add or remove view object from scene graph of all views depending on its canAddToSceneGraph(). obj : Gui.ViewProvider The active object of the document. The active view of the document. The editing transformation matrix. A tuple(obj,subname,subElement,editMode) of editing object reference, or None if no object is in edit. Current edit mode. Only meaningful when there is a current object in edit. The related App document to this Gui document. Indicate whether the document is undoing/redoing. Returns True if the document is marked as modified, and False otherwise.