Macro Toggle Panels Visibility: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Macro|Icon=Text-x-python|Name=Macro Toggle Views Visibility|Description=This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to...")
 
No edit summary
Line 1: Line 1:
{{Macro|Icon=Text-x-python|Name=Macro Toggle Views Visibility|Description=This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to be viewed with all available screen space.|Author=PiffPoof}}
{{Macro|Icon=Macro_Toggle_Views_Visibility.png|Name=Macro Toggle Views Visibility|Description=This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to be viewed with all available screen space.|Author=PiffPoof}}


==Description==
==Description==
Line 14: Line 14:


==Scripts==
==Scripts==
There are two scripts, one to change to each of 'Cad' and 'Inventor' Navigational Styles. There are also 2 icons, one for each Macro:


• icon and macro code to change the Navigational Style to 'CAD'

[[File:Macro_Manage_Navigational_Styles1.png]]
{{Code|code=
{{Code|code=
# change to CAD Navigational Style
# change to CAD Navigational Style
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
p.SetString("NavigationStyle","Gui::CADNavigationStyle")
p.SetString("NavigationStyle","Gui::CADNavigationStyle")
}}
• icon and macro code to change the Navigational Style to 'Inventor'

[[File:Macro_Manage_Navigational_Styles2.png]]
{{Code|code=
# change to Inventor Navigational Style
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
p.SetString("NavigationStyle","Gui::InventorNavigationStyle")
}}
}}

Revision as of 08:46, 17 January 2015

Macro Toggle Views Visibility

Description
This macro toggles the visibility of various supporting views in FreeCAD, allowing the main window to be viewed with all available screen space.

Author: PiffPoof
Author
PiffPoof
Download
None
Links
Macro Version
1.0
Date last modified
None
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

When using the Sketcher the right-button menu is redefined to hold options relevant to the Sketcher. Consequently the option to change the Navigational Style, which is available when outside the Sketcher, is not available when in the Sketcher.

Installation

There are two brief code snippets, each of which is a separate Macro. Installation is comprised of copying the two pieces code to the appropriate Macro directory and invoking them from the Macro menu. It is much preferable to add them both to a toolbar so as to be easily available while using the Sketcher.

Usage

Click on the associated toolbar button, or invoke from the Macro menu. There is no visible confirmation of their executing, aside from the Navigational Style will change.

User Interface

There really isn't any user interface, not even any confirmation that the Navigational Style has been changed. The confirmation will be when you next manipulate the view, your mouse movements will interpreted in the Navigational Style you selected.

Scripts

# change to CAD Navigational Style
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
p.SetString("NavigationStyle","Gui::CADNavigationStyle")