101 lines
6.0 KiB
HTML
101 lines
6.0 KiB
HTML
<html><head><title>Macro Manage Navigational Style</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Macro Manage Navigational Style</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><table class="fcinfobox wikitable ct" width="100%" style="float: right; width: 230px; margin-left: 10px;">
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Macro_Manage_Navigational_Styles"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Text-x-python.png" class="image"><img alt="Text-x-python.png" src="32px-Text-x-python.png" width="32" height="32" srcset="/wiki/images/2/2c/Text-x-python.png 1.5x" /></a> Macro Manage Navigational Styles</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Description
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven left macro-description">This pair of macros allow you to alter the Navigation Style while using the Sketcher.
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Author
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-author"><a href="https://www.freecadweb.org/wiki/index.php?title=User:PiffPoof" title="User:PiffPoof">PiffPoof</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Links
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Macros_recipes.html" title="Macros recipes">Macros recipes</a><br /><a href="How_to_install_macros.html" title="How to install macros">How to install macros</a><br /><a href="Customize_Toolbars.html" title="Customize Toolbars">How to customize toolbars</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Version
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-version">1.0
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Date last modification
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven macro-date">2015-01-17
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="#Macro_Manage_Navigational_Styles"><span class="tocnumber">1</span> <span class="toctext">Macro Manage Navigational Styles</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#Installation"><span class="tocnumber">3</span> <span class="toctext">Installation</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Usage"><span class="tocnumber">4</span> <span class="toctext">Usage</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#User_Interface"><span class="tocnumber">5</span> <span class="toctext">User Interface</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Scripts"><span class="tocnumber">6</span> <span class="toctext">Scripts</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr>
|
|
</table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>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.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Installation">Installation</span></h2>
|
|
<p>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.
|
|
</p>
|
|
<ul><li> see <a href="How_to_install_macros.html" title="How to install macros">How to install macros</a> for information on how to install this macro code</li>
|
|
<li> see <a href="Customize_Toolbars.html" title="Customize Toolbars">Customize Toolbars</a> for information how to install as a button on a toolbar</li></ul>
|
|
<h2><span class="mw-headline" id="Usage">Usage</span></h2>
|
|
<p>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.
|
|
</p>
|
|
<h2><span class="mw-headline" id="User_Interface">User Interface</span></h2>
|
|
<p>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.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Scripts">Scripts</span></h2>
|
|
<p>There are two scripts, one to change to each of 'Cad' and 'Inventor' Navigational Styles. There are also 2 icons, one for each Macro:
|
|
</p>
|
|
<ul><li> icon and macro code to change the Navigational Style to 'CAD'</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Manage_Navigational_Styles1.png" class="image"><img alt="Macro Manage Navigational Styles1.png" src="Macro_Manage_Navigational_Styles1.png" width="64" height="64" /></a>
|
|
</p>
|
|
<pre># change to CAD Navigational Style
|
|
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
|
|
p.SetString("NavigationStyle","Gui::CADNavigationStyle") </pre>
|
|
<ul><li> icon and macro code to change the Navigational Style to 'Inventor'</li></ul>
|
|
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_Manage_Navigational_Styles2.png" class="image"><img alt="Macro Manage Navigational Styles2.png" src="Macro_Manage_Navigational_Styles2.png" width="64" height="64" /></a>
|
|
</p>
|
|
<pre># change to Inventor Navigational Style
|
|
p=App.ParamGet("User parameter:BaseApp/Preferences/View")
|
|
p.SetString("NavigationStyle","Gui::InventorNavigationStyle") </pre>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_Manage_Navigational_Style&oldid=239931">http://www.freecadweb.org/wiki/index.php?title=Macro_Manage_Navigational_Style&oldid=239931</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |