Macro Toggle Drawstyle Optimized/it

Descrizione
Script ottimizzato per tutte le lingue e per oggetti selezionati o tutti gli oggetti.

Tree macro are available:


 * Combination that toggle global display mode when nothing is selected and/or toggle selected objects display mode if objects are selected. When objects are selected global display mode is automatically set to As is: Macro_Toggle_Drawstyle_Optimized.FCMacro Macro Toggle Drawstyle Optimized.png
 * Toggle global display mode: Macro_Toggle_Drawstyle_Optimized_2.FCMacro Macro Toggle Drawstyle Optimized 2.png
 * Toggle selected object(s) display mode (changes visible only in global As is (located on View toolbar) display mode): Macro_Toggle_Drawstyle_Optimized_3.FCMacro Macro Toggle Drawstyle Optimized 3.png

When working with FreeCAD there are times when you want to quickly change the Drawstyle of the object you are working with. This is available through the Drawstyle pull-down menu where any Drawstyle may be selected. This macro makes 2 of the Drawstyles available as a clickable button on a toolbar which the user may click to toggle back and forth between the two Drawstyles.

Installation
Installation is comprised of copying the two code to the appropriate Macro directory and invoking it from the Macro menu. It is much preferable to add it both to a toolbar so as to be more easily available.
 * see How to install macros for information on how to install this macro code
 * see Customize Toolbars for information how to install as a button on a toolbar

Usage
Select an object, then click on the associated toolbar button, or invoke from the Macro menu. The Drawstyle of the slected object will toggle between the two drawstyles specified in the macro code (see code listing below).

Script
Combination that toggle global display mode when nothing is selected and/or toggle selected objects display mode if objects are selected. When objects are selected global display mode is automatically set to As is:

The icon ToolBar

Macro_Toggle_Drawstyle_Optimized.FCMacro

Script 2
Toggle global display mode:

The icon ToolBar

Macro_Toggle_Drawstyle_Optimized_2.FCMacro

Script 3
Toggle selected object(s) display mode (changes visible only in global As is (located on View toolbar) display mode):

The icon ToolBar

Macro_Toggle_Drawstyle_Optimized_3.FCMacro

Link
The Forum link : Keyboard shortcut, View toolbar - Wireframe