Std Edit/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 51: Line 51:


FreeCADGui.ActiveDocument.setEdit("myObjectName",0)
FreeCADGui.ActiveDocument.setEdit("myObjectName",0)
}}

The second argument is the EditMode, an enum declared in [https://github.com/FreeCAD/FreeCAD/blob/master/src/Gui/ViewProvider.h#L423 src/Gui/ViewProvider.h] as follows:

{{Code|code=
enum EditMode {Default = 0,
Transform,
Cutting,
Color,
};
}}
}}



Revision as of 20:57, 20 January 2021

Std Edit

Menu location
Edit → Toggle Editmode
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
...

Rezumat

Această comandă permite intrarea sau ieșirea din modul de editare al unui obiect selectat. Un obiect trebuie să fie selectată (apoi intră în modul de editare) sau în modul de editare (apoi iese din modul de editare) pentru ca această comandă să funcționeze.

Usage

  1. If no object is in edit mode: select a single object.
  2. Select the Edit → Toggle Edit mode option from the menu.
  3. Either the edit mode of the selected object is activated or the existing edit mode deactivated.

Notes

  • Some tools will be disabled (greyed-out) in the user interface while an object's edit mode is active.
  • Not all object types have an edit mode.
  • The functionality available in edit mode depends on the object type.
  • Edit mode can also be activated by double-clicking an object in the Tree view.

Script

See also: FreeCAD Scripting Basics.

Aceasta intră în modul de editare al unui obiect determinat:

import FreeCADGui

FreeCADGui.ActiveDocument.setEdit("myObjectName",0)

The second argument is the EditMode, an enum declared in src/Gui/ViewProvider.h as follows:

enum EditMode {Default = 0,
               Transform,
               Cutting,
               Color,
};

Aceasta închide modul de editare:

import FreeCADGui

FreeCADGui.ActiveDocument.resetEdit()