Std SendToPythonConsole: Difference between revisions

From FreeCAD Documentation
m (→‎Description: added sections)
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
{{Docnav
{{Docnav
|[[Std_Alignment|Std Alignment]]
|[[Std_Alignment|Std Alignment]]
Line 11: Line 12:
}}
}}


<!--T:2-->
{{GuiCommand
{{GuiCommand
|Name=Std SendToPythonConsole
|Name=Std SendToPythonConsole
Line 18: Line 20:
}}
}}


== Description ==
== Description == <!--T:3-->


<!--T:4-->
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)
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==
==Usage== <!--T:5-->


==Notes==
==Notes== <!--T:6-->


==Limitations==
==Limitations== <!--T:7-->


==Scripting==
==Scripting== <!--T:8-->


<!--T:9-->
{{Docnav
{{Docnav
|[[Std_Alignment|Std Alignment]]
|[[Std_Alignment|Std Alignment]]
Line 39: Line 43:
}}
}}


<!--T:10-->
{{Std Base navi}}
{{Std Base navi}}


<!--T:11-->
{{Userdocnavi}}
{{Userdocnavi}}
</translate>
</translate>

Revision as of 22:24, 10 February 2020

Std SendToPythonConsole

Menu location
Edit or right-click context menu → Send to Python Console
Workbenches
All
Default shortcut
None
Introduced in version
-
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