Each module defines a set of entities that can be selected in that module. If you create your own module, then you should set the appropriate selectable entities when your module gets activated. You can use the getToolset method of the main window to get the selection toolset, and then use the setFilterTypes method of the selection toolset.
Use the following flags for the types and defaultType arguments:
For example: class MyModuleGui(AFXModuleGui): ... def activate(self): toolset = getAFXApp().getAFXMainWindow().getToolset( 'Selection') toolset.setFilterTypes( SELECTION_FILTER_CELL|SELECTION_FILTER_FACE, SELECTION_FILTER_FACE) AFXModuleGui.activate(self) |