FreeCAD-Doc/localwiki/TechDraw_NewView-ru.html
2018-07-19 18:47:02 -05:00

119 lines
10 KiB
HTML

<html><head><title>TechDraw NewView/ru</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 NewView/ru</h1></div>
<div id="mw-content-text" lang="ru" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="TechDraw_NewView"><a href="https://www.freecadweb.org/wiki/index.php?title=File:TechDraw_NewView.png" class="image"><img alt="TechDraw NewView.png" src="32px-TechDraw_NewView.png" width="32" height="32" srcset="/wiki/images/thumb/7/7f/TechDraw_NewView.png/48px-TechDraw_NewView.png 1.5x, /wiki/images/7/7f/TechDraw_NewView.png 2x" /></a> TechDraw NewView</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Расположение в меню
</th></tr>
<tr>
<td class="ctEven">TechDraw → View
</td></tr>
<tr>
<th class="ctOdd">Верстаки
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=TechDraw_Module/ru" title="TechDraw Module/ru">TechDraw</a>
</td></tr>
<tr>
<th class="ctOdd">Быстрые клавиши
</th></tr>
<tr>
<td class="ctEven">na
</td></tr>
<tr>
<th class="ctOdd">См. также
</th></tr>
<tr>
<td class="ctEven">
</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_NewView.html"><span class="tocnumber">1</span> <span class="toctext">TechDraw NewView</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 View tool adds a representation of one or more objects to a Drawing page. This is the basic building block of the TechDraw module. Most other Views are derived in some way from NewView.
</p>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:ViewOfBox2.png" class="image"><img alt="ViewOfBox2.png" src="ViewOfBox2.png" width="200" height="234" /></a></div></div>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Select one or more objects (Body, App::Part, Part::Feature, Draft object, ... See Notes) in the 3D window or tree.</li>
<li> If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.</li>
<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-view.png" class="image"><img alt="Techdraw-view.png" src="24px-Techdraw-view.png" width="24" height="24" srcset="/wiki/images/thumb/9/93/Techdraw-view.png/36px-Techdraw-view.png 1.5x, /wiki/images/thumb/9/93/Techdraw-view.png/48px-Techdraw-view.png 2x" /></a> <a href="TechDraw_NewView.html" title="TechDraw NewView">View</a></span> button</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>X</b>: The view's horizontal position on the page. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Y</b>: The view's vertical position on the page. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>LockPosition</b>: Prevents Views from being dragged in the Gui when true. The View can still be moved by changing X,Y properties. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Rotation</b>: Counterclockwise rotation of the View on the page in degrees. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>ScaleType</b>: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Scale</b>: A view will be rendered on the page in Scale:1 ratio to the Source. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Caption</b>: Optional short text caption.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Source</b>: Links to the Drawable Objects to be depicted</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Direction</b>: A vector representing the viewing direction. See note below. (1)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Perspective</b>: True for perspective projection, false for orthogonal projection. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Focus</b>: Distance from camera to projection plane for perspective projections. Needs to be adjusted to fit the object. Too far and the perspective is lost, too close and the object is distorted. </li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>CoarseView</b>: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. See Notes.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Smooth Visible Lines</b>: Visible Smooth lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Seam Visible Lines</b>: Visible Seam lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Iso Visible Lines</b>: Visible Isometric(u,v) lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Hard Hidden Lines</b>: Hidden lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Smooth Hidden Lines</b>: Hidden Smooth lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Seam Hidden Lines</b>: Hidden Seam lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Iso Hidden Lines</b>: Hidden Isometric(u,v) lines on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Iso Count</b>: Number of Isometric(u,v) lines to draw on each face.</li></ul>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Keep Label</b>: Always show View Label if true.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>LineWidth</b>: The thickness of visible lines. See <a href="TechDraw_LineGroup.html" title="TechDraw LineGroup">Line Groups</a>.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>HiddenWidth</b>: The thickness of hidden lines, if enabled.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>IsoWidth</b>: The thickness of isometric(u,v) surface lines and Dimension lines.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>ExtraWidth</b>: not implemented yet.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>ShowCenters</b>: Circle/arc center marks on/off.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>CenterScale</b>: Circular arc center mark size adjustment, if enabled.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>HorizCenterLine</b>: Show a horizontal centerline through view.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>VertCenterLine</b>: Show a vertical centerline through view.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>ShowSectionLine</b>: Show/hide section line if applicable.</li></ul>
<p>(1) these properties are common to all View types.
</p>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>Views can be added to Pages using Python.
</p>
<pre>view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View')
rc = page.addView(view)
FreeCAD.ActiveDocument.View.Source = [App.ActiveDocument.Box]
FreeCAD.ActiveDocument.View.Direction = (0.0,0.0,1.0) </pre>
<h2><span class="mw-headline" id="Notes">Notes</span></h2>
<ul><li> View will draw anything with a Shape property. You can select Draft objects or Bodies also. View will also extract any shapes from objects within an App::Part container or a DocumentObject Group.</li>
<li> Projection Direction property: This vector controls the direction from which you are viewing the object. +X is right, -X is left, +Y is rear, -Y is front (looking into the screen), +Z is up and -Z is down. So a Front view is (0,-1,0) and an isometric view is (1,-1,1). </li>
<li> CoarseView can be much faster for complex models. The quality of the drawing is reduced, since every curve is approximated as a series of short line segments. Vertices are not displayed in CoarseView since each short segment would result in two new Vertices and the display becomes cluttered. Linear Dimensions can be added to a CoarseView, but are unlikely to be useful.</li>
<li> Note that CoarseView is affected by an upstream bug in OCCT (<a rel="nofollow" class="external text" href="https://www.freecadweb.org/tracker/view.php?id=3332">#3332</a>) which causes the View's position on the Page to be slightly off from the specified X,Y values.</li></ul>
<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_NewView/ru&amp;oldid=288907">http://www.freecadweb.org/wiki/index.php?title=TechDraw_NewView/ru&amp;oldid=288907</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>