Std SendToPythonConsole: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Minor edits to GuiCommand. Fixed Docnav.)
Line 4: Line 4:
<!--T:1-->
<!--T:1-->
{{Docnav
{{Docnav
|[[Std_Alignment|Std Alignment]]
|[[Std_Delete|Std Delete]]
|[[Std_DlgPreferences|Std DlgPreferences]]
|[[Std_Placement|Std Placement]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_Alignment.png
|IconL=Std_Delete.svg
|IconR=Std_Placement.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
|IconR=Std_DlgPreferences.svg
}}
}}


Line 15: Line 15:
{{GuiCommand
{{GuiCommand
|Name=Std SendToPythonConsole
|Name=Std SendToPythonConsole
|MenuLocation=[[Std_Edit_Menu|Edit]] or right-click context menu → Send to Python Console
|MenuLocation=Edit → Send to Python Console
|Workbenches=All
|Workbenches=All
|Shortcut=-
|SeeAlso=...
|Version=0.19
|SeeAlso=-
}}
}}


Line 35: Line 37:
<!--T:9-->
<!--T:9-->
{{Docnav
{{Docnav
|[[Std_Alignment|Std Alignment]]
|[[Std_Delete|Std Delete]]
|[[Std_DlgPreferences|Std DlgPreferences]]
|[[Std_Placement|Std Placement]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_Alignment.png
|IconL=Std_Delete.svg
|IconR=Std_Placement.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
|IconR=Std_DlgPreferences.svg
}}
}}



Revision as of 14:28, 11 March 2020

Std SendToPythonConsole

Menu location
Edit → Send to Python Console
Workbenches
All
Default shortcut
-
Introduced in version
0.19
See also
-

Description

This command creates a variable named "obj" in the FreeCAD Python Console that references the currently selected object. If a subshape of the object is also selected, a "shp" variable will also be created, referencing the object shape, and an "elt" variable referencing the selected subshape (edge, face, or vertex)

Usage

Notes

Limitations

Scripting