Std UserEditMode: Difference between revisions

From FreeCAD Documentation
(Part_ColorPerFace)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 51: Line 51:


<!--T:15-->
<!--T:15-->
The object will have the color of its individual faces editable with the [[Part_ColorPerFace|Part ColorPerFace]] command.
The object will have the appearance of its individual faces editable with the [[Part_ColorPerFace|Part ColorPerFace]] command.


== Notes == <!--T:16-->
== Notes == <!--T:16-->
Line 57: Line 57:
<!--T:17-->
<!--T:17-->
* Not all objects support all edit modes. If the selected mode isn't supported by the object, its default edit mode will be used instead.
* Not all objects support all edit modes. If the selected mode isn't supported by the object, its default edit mode will be used instead.

== Preferences == <!--T:18-->

<!--T:19-->
* The last edit mode is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → UserEditMode}}. It is an integer value. Possible values are {{Incode|0}} (Default), {{Incode|1}} (Transform), {{Incode|2}} (Cutting) or {{Incode|3}} (Color). The default is {{Incode|0}}.


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


<!--T:21-->
<!--T:21-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:22-->
<!--T:22-->
Line 94: Line 89:
{{Code|code=
{{Code|code=
import FreeCADGui
import FreeCADGui
FreeCADGui.setUserEditMode(MODENAME) # Where MODENAME is a string available in the list of edit modes
FreeCADGui.setUserEditMode(MODENAME) # Where MODENAME is a string available in the list of edit modes
}}
}}
<translate>
<translate>
Line 110: Line 105:


</translate>
</translate>
{{Std Base navi{{#translation:}}}}
{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 14:51, 7 July 2024

Other languages:

Std UserEditMode

Menu location
Edit → Edit mode → ...
Workbenches
All
Default shortcut
None
Introduced in version
0.20
See also
Std Edit

Description

The Std UserEditMode command defines the edit mode to be used when an object is double-clicked in the Tree view.

Usage

  1. In the menu go to Edit → Edit mode and select an edit mode.

Available edit modes

Default

The object will be edited using its default mode. This edit mode is defined internally to be the most appropriate for the object type. For example, it will be shape properties edition for Part primitives and PartDesign features, placement edition for Part booleans, etc.

Transform

The object will have its placement editable with the Std TransformManip command.

Cutting

This edit mode is implemented as available but currently does not seem to be used by any object.

Color

The object will have the appearance of its individual faces editable with the Part ColorPerFace command.

Notes

  • Not all objects support all edit modes. If the selected mode isn't supported by the object, its default edit mode will be used instead.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To list the available edit modes:

import FreeCADGui
FreeCADGui.listUserEditModes()

To get the active edit mode:

import FreeCADGui
FreeCADGui.getUserEditMode()

To set the active edit mode:

import FreeCADGui
FreeCADGui.setUserEditMode(MODENAME)  # Where MODENAME is a string available in the list of edit modes