Selection API: Difference between revisions
Renatorivo (talk | contribs) (translate) |
Renatorivo (talk | contribs) (Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
The selection submodule is part of the FreeCADGui module. Example: |
The selection submodule is part of the FreeCADGui module. Example: |
||
</translate> |
</translate> |
||
Line 7: | Line 8: | ||
<translate> |
<translate> |
||
<!--T:2--> |
|||
{{APIFunction|addSelection|FreeCAD.Object|Adds an object to the selection| }} |
{{APIFunction|addSelection|FreeCAD.Object|Adds an object to the selection| }} |
||
{{APIFunction|clearSelection|[string]|Clears the selection of the given document name. If no document is given the complete selection is cleared.| }} |
{{APIFunction|clearSelection|[string]|Clears the selection of the given document name. If no document is given the complete selection is cleared.| }} |
||
Line 14: | Line 16: | ||
{{APIFunction|removeSelection|FreeCAD.Object|Removes an object from the selection| }} |
{{APIFunction|removeSelection|FreeCAD.Object|Removes an object from the selection| }} |
||
<!--T:3--> |
|||
[[Category:API]] |
[[Category:API]] |
||
Revision as of 22:42, 15 November 2014
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