Std SendToPythonConsole

Description
The Std SendToPythonConsole command creates a variable in the Python console referencing a selected object, also (as of 0.20) opens the console if it's not already open and sets the keyboard focus to it. If a subshape of the object is selected two additional variables are created, one referencing the shape of the object and the other referencing the subshape itself. The variables and the code involved can be used to development Python code.

>>> ### Begin command Std_SendToPythonConsole >>> obj = App.getDocument("Unnamed").getObject("Box") >>> shp = App.getDocument("Unnamed").getObject("Box").Shape >>> elt = App.getDocument("Unnamed").getObject("Box").Shape.Edge8 >>> ### End command Std_SendToPythonConsole

Usage

 * 1) Select a single object.
 * 2) There are several ways to invoke the command:
 * 3) * Select the option from the menu.
 * 4) * Select the option from the Tree view context menu or 3D view context menu.
 * 5) * Use the keyboard shortcut: ++.