ArchIFCView.IfcContextView Class Reference

Public Member Functions

def setEdit (self, viewObject, mode)
 

Detailed Description

A default view provider for IfcContext objects.

Member Function Documentation

◆ setEdit()

def ArchIFCView.IfcContextView.setEdit (   self,
  viewObject,
  mode 
)
Method called when the document requests the object to enter edit mode.

Opens the IfcContextUi as the task panel.

Edit mode is entered when a user double clicks on an object in the tree
view, or when they use the menu option [Edit -> Toggle Edit Mode].

Parameters
----------
mode: int or str
    The edit mode the document has requested. Set to 0 when requested via
    a double click or [Edit -> Toggle Edit Mode].

Returns
-------
bool
    If edit mode was entered.

Referenced by PathScripts.PathSetupSheetGui.ViewProvider.doubleClicked(), PathScripts.PathToolBitGui.ViewProvider.doubleClicked(), ArchReference.ViewProviderArchReference.doubleClicked(), Spreadsheet_legacy.ViewProviderSpreadsheet.doubleClicked(), ArchSchedule.CommandArchSchedule.IsActive(), ArchAxis.CommandArchGrid.IsActive(), PathScripts.PathIconViewProvider.ViewProvider.setupContextMenu(), PathScripts.PathToolControllerGui.ViewProvider.setupContextMenu(), PathScripts.PathOpGui.ViewProvider.setupContextMenu(), and PathScripts.PathJobGui.ViewProvider.setupContextMenu().


The documentation for this class was generated from the following file:
  • src/Mod/Arch/ArchIFCView.py