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

135 lines
13 KiB
HTML

<html><head><title>Draft Dimension/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>Draft Dimension/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="Draft_Dimension"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Dimension.png" class="image"><img alt="Draft Dimension.png" src="32px-Draft_Dimension.png" width="32" height="32" srcset="/wiki/images/thumb/b/b0/Draft_Dimension.png/48px-Draft_Dimension.png 1.5x, /wiki/images/b/b0/Draft_Dimension.png 2x" /></a> Draft Dimension</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Расположение в меню
</th></tr>
<tr>
<td class="ctEven">Черчение → Размер
</td></tr>
<tr>
<th class="ctOdd">Верстаки
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/ru" title="Draft Module/ru">Draft</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/ru" title="Arch Module/ru">Arch</a>
</td></tr>
<tr>
<th class="ctOdd">Быстрые клавиши
</th></tr>
<tr>
<td class="ctEven">D I
</td></tr>
<tr>
<th class="ctOdd">См. также
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_FlipDimension/ru" title="Draft FlipDimension/ru">Перевернуть размер</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="Draft_Dimension.html"><span class="tocnumber">1</span> <span class="toctext">Draft Dimension</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="#Available_dimension_types"><span class="tocnumber">4</span> <span class="toctext">Available dimension types</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Options"><span class="tocnumber">5</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Properties"><span class="tocnumber">6</span> <span class="toctext">Properties</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Scripting"><span class="tocnumber">7</span> <span class="toctext">Scripting</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Links"><span class="tocnumber">8</span> <span class="toctext">Links</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>The dimension tool creates a dimension in the current document with two points defining the distance to measure, and a third point specifying where the dimension line passes.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Screenshot_Draft_Dimension.jpg" class="image"><img alt="Screenshot Draft Dimension.jpg" src="400px-Screenshot_Draft_Dimension.jpg" width="400" height="248" srcset="/wiki/images/thumb/8/8f/Screenshot_Draft_Dimension.jpg/600px-Screenshot_Draft_Dimension.jpg 1.5x, /wiki/images/8/8f/Screenshot_Draft_Dimension.jpg 2x" /></a>
</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:Draft_Dimension.png" class="image"><img alt="Draft Dimension.png" src="16px-Draft_Dimension.png" width="16" height="16" srcset="/wiki/images/thumb/b/b0/Draft_Dimension.png/24px-Draft_Dimension.png 1.5x, 32px-Draft_Dimension.png 2x" /></a> <a href="Draft_Dimension.html" title="Draft Dimension">Draft Dimension</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">D</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">I</span> keys</li>
<li> Click a point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
<li> Click a second point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
<li> Click a third on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li></ol>
<h2><span class="mw-headline" id="Available_dimension_types">Available dimension types</span></h2>
<ul><li> <b>Linear dimensions</b>: by picking any 2 points or any straight edge with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> pressed.</li>
<li> <b>Horizontal/vertical dimensions</b>: by pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span> while the second point is selected.</li>
<li> <b>Diameter dimensions</b>: by picking a curved edge with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> pressed.</li>
<li> <b>Radius dimensions</b>: by picking a curved edge with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> pressed, then pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span>.</li>
<li> <b>Angular dimensions</b>: by picking 2 straight edges with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span> pressed.</li></ul>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<ul><li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">X</span>, <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Y</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> after a point to constrain the next point on the given axis.</li>
<li> To enter coordinates manually, simply enter the numbers, then press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> between each X, Y and Z component.</li>
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> while drawing to force <a href="Draft_Snap.html" title="Draft Snap">snapping</a> your point to the nearest snap location, independently of the distance.</li>
<li> Pressing <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span> will <a href="Draft_Constrain.html" title="Draft Constrain">constrain</a> the dimension horizontally or vertically, or, when working on a circular edge, switches between diameter and radius modes.</li>
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">R</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Relative</b></span> button. If relative mode is on, the coordinates of the next point are relative to the last one. If not, they are absolute, taken from the (0,0,0) origin point.</li>
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">T</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Continue</b></span> button. If continue mode is on, you will be able to draw continued dimensions, one after the other, that share the same baseline.</li>
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> or the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Cancel</b></span> button to abort the current Line command.</li>
<li> By picking an existing edge with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ALT</span>, instead of entering measurement points, the dimension will become <b>parametric</b> and remember which edge it is bound to. If the endpoints of that edge move later on, the dimension will follow them.</li>
<li> If an edge is selected before starting the Dimension command, the created dimension will also be <b>parametric</b>.</li>
<li> The direction of the dimension can be changed afterwards, by modifying its "Direction" property</li></ul>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Start</b>: The start point of the distance to measure</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>End</b>: The end point of the distance to measure</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Dimline</b>: A point through which the dimension line must pass</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Display Mode</b>: Specifies if the text is aligned to the dimension lines or always faces the camera</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Font Size</b>: The size of the letters</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Ext Lines</b>: The size of the extension lines (between the measurement points and the dimension line)</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Text Position</b>: Can be used to force the text to be displayed at a certain position</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Text Spacing</b>: Specifies the space between the text and the dimension line</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Override</b>: Specifies a text to display instead of the measurement. Insert "$dim", inside that text, to display the measurement value</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Font Name</b>: The font to use to draw the text. It can be a font name, such as "Arial", a default style such as "sans", "serif" or "mono", or a family such as "Arial,Helvetica,sans" or a name with a style such as "Arial:Bold". If the given font is not found on the system, a generic one is used instead.</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Arrow Type</b>: The type of arrow to use</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Arrow Size</b>: The size of the arrows</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Decimals</b>: The number of decimal places to display on the dimension</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Flip Arrows</b>: Reverse the orientation of arrows</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Unit Override</b>: Expresses the distance in the given unit (leave blank to use the system unit) <span style="font-size:x-small;"><a href="Release_notes_0.17.html" title="Release notes 0.17">available in version 0.17</a></span></li></ul>
<p><br />
</p>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The Dimension 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>makeDimension (p1,p2,[p3]) </pre>
<p>or
</p>
<pre>makeDimension (object,i1,i2,p3) </pre>
<p>or
</p>
<pre>makeDimension (objlist,indices,p3) </pre>
<ul><li> Creates a Dimension object with the dimension line passign through p3.</li>
<li> The Dimension object takes the <a href="Draft_Linestyle.html" title="Draft Linestyle">Draft linewidth and color</a> set in the command bar.</li>
<li> There are multiple ways to create a dimension, depending on the arguments you pass to it:</li></ul>
<ol><li> (p1,p2,p3): creates a standard dimension from p1 to p2.</li>
<li> (object,i1,i2,p3): creates a linked dimension to the given object, measuring the distance between its vertices indexed i1 and i2.</li>
<li> (object,i1,mode,p3): creates a linked dimension to the given object, i1 is the index of the (curved) edge to measure, and mode is either "radius" or "diameter". Returns the newly created object.</li></ol>
<pre>makeAngularDimension (center,[angle1,angle2],p3) </pre>
<ul><li> creates an angular Dimension from the given center, with the given list of angles, passing through p3.</li>
<li> Returns the newly created object.</li></ul>
<p>Example:
</p>
<pre>import FreeCAD,Draft
p1 = FreeCAD.Vector(0,0,0)
p2 = FreeCAD.Vector(1,1,0)
p3 = FreeCAD.Vector(2,0,0)
Draft.makeDimension(p1,p2,p3) </pre>
<h2><span class="mw-headline" id="Links">Links</span></h2>
<ul><li> Tutorial: <a rel="nofollow" class="external text" href="http://www.youtube.com/watch?v=nxNT0KychcY">Projecting dimensions on a Drawing Page</a></li></ul>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Draft_Dimension/ru&amp;oldid=285307">http://www.freecadweb.org/wiki/index.php?title=Draft_Dimension/ru&amp;oldid=285307</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>