Selection API: Difference between revisions
((November 2018) This information may be incomplete and outdated. For the latest API, see the autogenerated API documentation) |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:4--> |
|||
{{VeryImportantMessage|(November 2018) This information may be incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation].}} |
{{VeryImportantMessage|(November 2018) This information may be incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation].}} |
||
Revision as of 10:20, 27 February 2019
(November 2018) This information may be incomplete and outdated. For the latest API, see the autogenerated API documentation.
The selection submodule is part of the FreeCADGui module. Example:
import FreeCADGui
sel = FreeCADGui.Selection.getSelection()
Description: Clears the selection of the given document name. If no document is given the complete selection is cleared.
Returns:
Description: Returns a list of selected document objects for a given document name. If no document is given the complete selection is returned.
Returns: a list of document objects in the order they were selected.
Description: Returns a list of SelectionObject for a given document name. If no document is given the complete selection is returned. Used for selecting subobjects (ex some Edges of a Face).
Returns: a list of SelectionObjects in the order they were selected