FreeCAD-Doc/localwiki/TechDraw_New_Default.html
2018-07-08 12:11:49 -05:00

89 lines
5.8 KiB
HTML

<html><head><title>TechDraw New Default</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>TechDraw New Default</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" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="TechDraw_New_Default"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_New_Default.png" class="image"><img alt="TechDraw New Default.png" src="32px-TechDraw_New_Default.png" width="32" height="32" srcset="/wiki/images/thumb/2/27/TechDraw_New_Default.png/48px-TechDraw_New_Default.png 1.5x, /wiki/images/2/27/TechDraw_New_Default.png 2x" /></a> TechDraw New Default</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Menu location
</th></tr>
<tr>
<td class="ctEven">TechDraw → New Default
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven"><a href="TechDraw_Module.html" title="TechDraw Module">TechDraw</a>
</td></tr>
<tr>
<th class="ctOdd">Default shortcut
</th></tr>
<tr>
<td class="ctEven">x x
</td></tr>
<tr>
<th class="ctOdd">See also
</th></tr>
<tr>
<td class="ctEven"><a href="TechDraw_New_Pick.html" title="TechDraw New Pick">TechDraw New Pick</a>
</td></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="#TechDraw_New_Default"><span class="tocnumber">1</span> <span class="toctext">TechDraw New Default</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="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Notes"><span class="tocnumber">7</span> <span class="toctext">Notes</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>The New Default tool creates a new Page using the the Template file specified in <a href="TechDraw_Preferences.html" title="TechDraw Preferences">Preferences</a>. If the default Template is not specified in your configuration file (user.cfg), New Default will look in "my-install-directory/Mod/TechDraw/Templates/A4_LandscapeTD.svg".
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_New_Default.png" class="image"><img alt="TechDraw New Default.png" src="24px-TechDraw_New_Default.png" width="24" height="24" srcset="/wiki/images/thumb/2/27/TechDraw_New_Default.png/36px-TechDraw_New_Default.png 1.5x, /wiki/images/thumb/2/27/TechDraw_New_Default.png/48px-TechDraw_New_Default.png 2x" /></a> <a class="mw-selflink selflink">New Default</a></span> button. An Active Document must exist.</li></ol>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<p>None.
</p>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Projection Type</b>: Default projection type (First or Third Angle) for this Page.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>KeepUpdated</b>: If false, Page is not updated with changes to the 3D model. Useful for complicated/slow drawings. See Notes.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Template</b>: A link to this Page's <a href="TechDraw_Templates.html" title="TechDraw Templates">Template</a> object.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Views</b>: A list of links to the Views on this Page. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Scale</b>: Default scale for Views in this Page.</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The New Default tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following functions:
</p>
<pre>page = FreeCAD.ActiveDocument.addObject('TechDraw::DrawPage','Page')
template = FreeCAD.ActiveDocument.addObject('TechDraw::DrawSVGTemplate','Template')
template.Template = templateFileSpec
page.Template = FreeCAD.ActiveDocument.Template </pre>
<ul><li> Creates a new Page in the current document</li></ul>
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
<ul><li> If a Page is marked as "do not keep updated" either through the KeepUpdated Property or by the setting in Preferences, it will ignore changes in the 3D model. You may notice anomalies (missing geometry, missing Dimension values, etc) in the appearance of the Page. These will correct themselves once the Page is updated.</li></ul>
<p><br />
</p>
<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=TechDraw_New_Default&amp;oldid=247847">http://www.freecadweb.org/wiki/index.php?title=TechDraw_New_Default&amp;oldid=247847</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>