204 lines
33 KiB
HTML
204 lines
33 KiB
HTML
<html><head><title>Draft tutorial Outdated/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 tutorial Outdated/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" style="width: 230px; float: right; margin-left: 1em">
|
||
<tr>
|
||
<td class="ctTitle">
|
||
<h3><span class="mw-headline" id="Tutorial"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Tutorial</span></h3>
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Topic
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">Drafting
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Level
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">Beginner
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Time to complete
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Author
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">FreeCAD version
|
||
</th></tr>
|
||
<tr>
|
||
<td class="ctEven">
|
||
</td></tr>
|
||
<tr>
|
||
<th class="ctOdd">Example File(s)
|
||
</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="#Tutorial"><span class="tocnumber">1</span> <span class="toctext">Tutorial</span></a></li>
|
||
<li class="toclevel-1 tocsection-1"><a href="#.D0.9F.D1.80.D0.B5.D0.B6.D0.B4.D0.B5_.D1.87.D0.B5.D0.BC_.D0.BD.D0.B0.D1.87.D0.B0.D1.82.D1.8C"><span class="tocnumber">2</span> <span class="toctext">Прежде чем начать</span></a></li>
|
||
<li class="toclevel-1 tocsection-2"><a href="#.D0.9D.D0.B0.D1.81.D1.82.D1.80.D0.BE.D0.B9.D0.BA.D0.B0_.D1.80.D0.B0.D0.B1.D0.BE.D1.87.D0.B5.D0.B9_.D0.BE.D0.B1.D0.BB.D0.B0.D1.81.D1.82.D0.B8_.D0.B2_FreeCAD"><span class="tocnumber">3</span> <span class="toctext">Настройка рабочей области в FreeCAD</span></a></li>
|
||
<li class="toclevel-1 tocsection-3"><a href="#.D0.98.D0.BC.D0.BF.D0.BE.D1.80.D1.82_CAD_.D1.87.D0.B5.D1.80.D1.82.D0.B5.D0.B6.D0.B5.D0.B9"><span class="tocnumber">4</span> <span class="toctext">Импорт CAD чертежей</span></a></li>
|
||
<li class="toclevel-1 tocsection-4"><a href="#Drawing_the_plan_view"><span class="tocnumber">5</span> <span class="toctext">Drawing the plan view</span></a>
|
||
<ul>
|
||
<li class="toclevel-2 tocsection-5"><a href="#Using_the_drawing_tools"><span class="tocnumber">5.1</span> <span class="toctext">Using the drawing tools</span></a></li>
|
||
<li class="toclevel-2 tocsection-6"><a href="#A_note_about_upgrade_.26_downgrade"><span class="tocnumber">5.2</span> <span class="toctext">A note about upgrade & downgrade</span></a></li>
|
||
<li class="toclevel-2 tocsection-7"><a href="#Another_note_about_snapping"><span class="tocnumber">5.3</span> <span class="toctext">Another note about snapping</span></a></li>
|
||
<li class="toclevel-2 tocsection-8"><a href="#Importing_and_building_compound_objects"><span class="tocnumber">5.4</span> <span class="toctext">Importing and building compound objects</span></a></li>
|
||
<li class="toclevel-2 tocsection-9"><a href="#Dimensions_and_annotations"><span class="tocnumber">5.5</span> <span class="toctext">Dimensions and annotations</span></a></li>
|
||
<li class="toclevel-2 tocsection-10"><a href="#Organizing"><span class="tocnumber">5.6</span> <span class="toctext">Organizing</span></a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toclevel-1 tocsection-11"><a href="#Drawing_the_elevations"><span class="tocnumber">6</span> <span class="toctext">Drawing the elevations</span></a>
|
||
<ul>
|
||
<li class="toclevel-2 tocsection-12"><a href="#Rotating_the_view.2C_and_creating_macros"><span class="tocnumber">6.1</span> <span class="toctext">Rotating the view, and creating macros</span></a></li>
|
||
<li class="toclevel-2 tocsection-13"><a href="#Drawing_the_rotated_views"><span class="tocnumber">6.2</span> <span class="toctext">Drawing the rotated views</span></a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
</td></tr></table>
|
||
<p><br />
|
||
</p>
|
||
<div id="itsfree" style="text-align:center;color:black;background:#FDE0A8;margin:1em 7em;padding:0.5em 2em;border:2px solid #FF5706;"><b>The Draft module has changed a lot since this tutorial was written. Several concepts are now different and might not work the way they are described below.</b></div>
|
||
<p><br />
|
||
Это руководство научит вас использовать FreeCAD <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/ru" title="Draft Module/ru">модуль 2D черчения</a> (Также называемый чертежным модулем) для создания простых архитектурных чертежей. Для этого , мы нарисуем простую каменную сторожку. Давайте предположим , что мы получили цифровой чертеж с указанием местонахождения сторожки, и мы будем использовать его чтобы начертить наш проект поверх изначальных чертежей. Мы начертим ортогональную проекцию, сечение , а также передний и задний фасад.
|
||
</p>
|
||
<h2><span class="mw-headline" id=".D0.9F.D1.80.D0.B5.D0.B6.D0.B4.D0.B5_.D1.87.D0.B5.D0.BC_.D0.BD.D0.B0.D1.87.D0.B0.D1.82.D1.8C">Прежде чем начать</span></h2>
|
||
<p>Имейте в виду, что FreeCAD все еще находится в ранней стадии развития, поэтому не может быть столь же продуктивным, как другие CAD приложениями , и вы непременно столкнетесь с ошибками и падениями. Теперь FreeCAD может сохранять файлы резервных копий. Количество резервных копий может быть указано в диалоге настроек(preferences). Не стесняйтесь держать 2-3 резервных файла, пока не научитесь работать с FreeCAD.
|
||
</p><p>Чаще сохраняйте свою работу, время от времени сохраняйте вашу работу под другим именем, так чтобы у вас была "безопасная" копия на случай падения и будте готовы что некоторые команды не смогут дать вам ожидаемых результатов.
|
||
</p>
|
||
<h2><span class="mw-headline" id=".D0.9D.D0.B0.D1.81.D1.82.D1.80.D0.BE.D0.B9.D0.BA.D0.B0_.D1.80.D0.B0.D0.B1.D0.BE.D1.87.D0.B5.D0.B9_.D0.BE.D0.B1.D0.BB.D0.B0.D1.81.D1.82.D0.B8_.D0.B2_FreeCAD">Настройка рабочей области в FreeCAD</span></h2>
|
||
<p>FreeCAD это программа трехмерного моделирования, но в данном руководстве мы будем использовать его только для работы в 2D. Таким , образом мы будем операться при черчении на земную поверхность, и все что мы будем делать, будет с координатой Z равной нулю. Итак, сначала, давайте установим вид сверху нажав клавишу <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">2</span> и убедимся что находимся в режиме ортогонального проецирования (клавиша <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">O</span>) , в противном случае мы могли бы видеть какие нибудь эффекты перспективы.
|
||
</p><p>Также , очень важно установить по <a href="https://www.freecadweb.org/wiki/index.php?title=Interface_Customization/ru" title="Interface Customization/ru">горячие клавиши</a> умолчанию для чертежных команд. Так вы сможете управлять всеми командами с клавиатуры, что кардинально увеличит вашу скорость. В общем вы можете все делать с клавиатуры, а мышь вам будет нужна только для рисования точек и выбора объектов. Отправляйтесь в меню Customize -> Keyboard -> Category Python и выберете горячие клавиши которые вам будут удобны, хорошо будет если эти комбинации можно будет легко запомнить. Например, я использую L для Линии, W для ломаной кривой(Wire), A для Арки, C для Окружности(Circle), M для Перемещения(Move), R для поворота, F для смещения(Offset) (O уже занята включением Ортографического вида), D для масштабирования, T для текста, и.т.д....
|
||
</p><p>Теперь когда мы все настроили, мы можем начинать рисовать(чертить).
|
||
</p>
|
||
<h2><span class="mw-headline" id=".D0.98.D0.BC.D0.BF.D0.BE.D1.80.D1.82_CAD_.D1.87.D0.B5.D1.80.D1.82.D0.B5.D0.B6.D0.B5.D0.B9">Импорт CAD чертежей</span></h2>
|
||
<p>Если вы собираетесь импортировать двухмерные cad чертежи, существует большая вероятность что они будут обладать проприетарным форматом, таким как .dwg (из AutoCAD) или .mcd (из VectorWorks). Спецификация на данный формат файлов храниться в секрете у поставщиков, так что импортировать из этого очень трудно и практически невозможно что FreeCAD будут поддерживать их. Однако , один файловый формат, достаточно хорошо описан(задокументирован) это dxf , и Чертежный Модуль частично поддерживает его.
|
||
</p><p>Большинство CAD приложений могут экспортировать в dxf формат, а также вы можете самостоятельно конвертировать в dxf формат через свободные(бесплатные) конверторы, такие как openDWG <a rel="nofollow" class="external text" href="http://www.opendesign.com/guestfiles/tx_sdk">"Teigha file Converter"</a> утилита. Например, <a rel="nofollow" class="external text" href="http://www.doublecad.com/">Doublecad</a> бесплатная, полностью функциональная CAD программа которая позволит вам экспортировать в DXF:
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Doublecad.jpg" class="image"><img alt="Doublecad.jpg" src="Doublecad.jpg" width="800" height="500" /></a>
|
||
</p><p>Просто откройте ваш dxf файл через File -> Open диалог. Несколько параметров импорта можно настроить в окне <a href="Draft_Preferences.html" title="Draft Preferences">Настройках Чертежа</a> . Например, вы можете если вы хотите чтобы DXF импортировался с оригинальными цветами и толщинами линий, или преобразовывался в текущие настройки палитры , которая находиться справа на Чертежной панели. Но в FreeCAD вам не надо по цвету ваших объектов определять их ширину. Объекты обладают независимыми атрибутами задающими цвет и толщину линии. Так что вы можете навсегда забыть о DXF цветах, или конвертировать ввсе в цвета на ваш выбор.
|
||
</p><p>После импорта ваш чертеж в FreeCAD , выглядит примерно так:
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Situation.jpg" class="image"><img alt="Situation.jpg" src="Situation.jpg" width="800" height="595" /></a>
|
||
</p><p>Начнем с того что немножко здесь приберемся.
|
||
</p>
|
||
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Tutorial-treeview.jpg" class="image"><img alt="Tutorial-treeview.jpg" src="100px-Tutorial-treeview.jpg" width="100" height="101" srcset="/wiki/images/thumb/c/c5/Tutorial-treeview.jpg/150px-Tutorial-treeview.jpg 1.5x, /wiki/images/thumb/c/c5/Tutorial-treeview.jpg/200px-Tutorial-treeview.jpg 2x" /></a></div> В FreeCAD, нет слоев как в Autocad. вместо этого мы работаем с группами. Группы это другой более гибкий путь организовать(структурировать) ваш чертеж. Вы можете создать новые группы щелкну правой клавишей на древе построений, менять их местами, перемещать в другие группы, или перемещать объекты из/в группы просто перетаскивая их в окне древа построений (tree view). Вы также можете назначить текущую толщину и цвет всем объектам группы, включить/выключить их отображение нажатием <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SPACE</span>.
|
||
<p>Давайте поместим все наши объекты в новую группу. Чтобы ускорить нашу работу, мы выключим все что мы не используем, например растительность и размеры.
|
||
</p>
|
||
<h2><span class="mw-headline" id="Drawing_the_plan_view">Drawing the plan view</span></h2>
|
||
<h3><span class="mw-headline" id="Using_the_drawing_tools">Using the drawing tools</span></h3>
|
||
<p>The only thing we'll need at the moment is the area that is assigned to our cabin. It lies in a separate group named "projection". So we can basically turn off everything else with the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SPACE</span> key, and start drawing on top of it. We will draw a small cabin with a guard room and a WC, in very simple structural masonry, so there won't be any need for special concretework in the plan itself. But we'll put a layer of plaster inside, and a layer of ceramics outside.
|
||
</p><p>So, let's begin with doing the general shape of our walls:
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-01.jpg" class="image"><img alt="Draft-tutorial-01.jpg" src="Draft-tutorial-01.jpg" width="800" height="269" /></a>
|
||
</p><p>Our DXF drawing was drawn in meters, so unless we have any reason to change that, we'll continue with the same units. FreeCAD currently does not have a friendly system to work with real-world units, so we simply assume that "one" means "one meter".
|
||
</p><p>Another good thing to remember is to construct temporary geometry whenever you need. You want a point that lies 2 meters away horizontally? Draw a vertical line, move it 2m away, pass a horizontal line through it, there is your point.
|
||
</p>
|
||
<ul><li> Create a <a href="Draft_Rectangle.html" title="Draft Rectangle">rectangle</a>: Snap its cornerpoints with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> to the corners of the assigned area</li>
|
||
<li> <a href="Draft_Offset.html" title="Draft Offset">Offset</a> the rectangle: With the rectangle selected, press <a href="Draft_Offset.html" title="Draft Offset">Offset</a>, press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span> to turn on copy mode, move your mouse inside the first rectangle so offset knows in which direction to go, and type 0.20, Enter</li>
|
||
<li> Turn them into a face: <a href="Draft_Upgrade.html" title="Draft Upgrade">Upgrade</a> the first rectangle, upgrade the second rectangle, then select the outer rectangle, CTRL-select the inner rectangle and press <a href="Draft_Downgrade.html" title="Draft Downgrade">Downgrade</a></li>
|
||
<li> Create the door opening: Make a 1.00 x 0.50 rectangle, <a href="Draft_Move.html" title="Draft Move">move</a> it to the upper corner of our main wall (press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span> to turn copy mode off).</li>
|
||
<li> <a href="Draft_Move.html" title="Draft Move">Move</a> the door opening to the right position: Move it 0.10 to the left. We won't put our opening directly on the corner, because it would make the door difficult to open.</li>
|
||
<li> Subtract the door opening: Select the wall, CTRL-select the door opening, and press <a href="Draft_Downgrade.html" title="Draft Downgrade">downgrade</a>.</li></ul>
|
||
<h3><span class="mw-headline" id="A_note_about_upgrade_.26_downgrade">A note about upgrade & downgrade</span></h3>
|
||
<p>Now, you must be aware that the openCasCade kernel that FreeCAD is built upon, is a 3D kernel. It is made primarily for 3D operations. When it has to cut or unite planar faces, like we are doing now with upgrade/downgrade operations, it sometimes does strange things, and subsequent operations (like other upgrades/downgrades) sometimes don't give the expected results. Of course with time those behaviours will end up being corrected by the FreeCAD developers, but it is wise to know alternative ways to solve immediate problems.
|
||
</p><p>The best way to solve a face that isn't upgrading/downgrading/offsetting correctly, is simply to downgrade it until it is all exploded to single edges, then upgrade those edges together again up to a new face. In case that doesn't work either, simply redraw a new wire (polyline) on top of the problematic face, snapping to its endpoints, then delete the old face and upgrade the new wire. Usually a face that you draw yourself is in much better shape than a face that you obtained by upgrade/downgrade.
|
||
</p><p>Another thing to keep in mind is that when you subtract a shape from another, you can find yourself with one object containing several faces. This might difficult your further work (they don't offset correctly, etc), so a good thing in that case is always to separate them with the downgrade tool.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Another_note_about_snapping">Another note about snapping</span></h3>
|
||
<p>There are two forms of snapping in the Draft module: passive snap, which occurs when you simply pass your mouse cursor over an object (an open circle symbol appears), and active snap, which is when you press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span>. Active snapping allows you to snap to specific points on an object, like its endpoints, midpoints, centers, or intersections with other objects. If you press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span>, which is the key for constraining horizontally and vertically, you gain even more snapping points. But this has a cost, because FreeCAD must do many calculations in real time. If you have many objects, you'll begin to feel the difference. So a good trick to speedup your work is to take the habit of working as much as possible with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span> and passive snapping only. You will see quickly that you'll obtain accurate results and work much faster.
|
||
</p><p>So let's go back to work:
|
||
</p>
|
||
<ul><li> Create a 10cm-wide wall between the main room and the WC. Upgrade it, then upgrade it together with the main wall to unite them</li>
|
||
<li> Create other rectangles for your other openings. I put a 60cm-wide window in what will become the WC, a 80cm door between the main room and the WC, and for the big window in the main room I simply left 40cm wall at the left and right side.</li>
|
||
<li> Offset all the walls of 1cm, to make a cement/plaster layer, then downgrade the offsetted copies to turn them into simple wires</li>
|
||
<li> Create a layer of ceramics on the exterior side, by offsetting our plaster line 2cm, then drawing a 2cm-thick shape between the two lines</li>
|
||
<li> Delete the 2cm offset. that we don't need anymore, as well as all construction geometry. If you feel you might need them later, simply put them in a separate group and turn that group off with <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SPACE</span>.</li></ul>
|
||
<p>This is where we are now (I kept construction geometry there, in blue, for you to see):
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-walls.jpg" class="image"><img alt="Draft-tutorial-walls.jpg" src="Draft-tutorial-walls.jpg" width="800" height="474" /></a>
|
||
</p>
|
||
<h3><span class="mw-headline" id="Importing_and_building_compound_objects">Importing and building compound objects</span></h3>
|
||
<p>In FreeCAD, compound objects are objects made with the geometry of several other objects. In other softwares, it is called blocks, symbols or components. It is a very handy way to group geometry under one single object. Any of the objects created with the draft module can be grouped into a compound. The command to create a compound is the <a href="Draft_Upgrade.html" title="Draft Upgrade">Upgrade</a> command. The use is simple, select everything you want to turn into a compound, and press Upgrade. If no other more intelligent shape can be created, they will be turned into a compound.
|
||
</p><p>Using compound geometry is specially useful to build a symbol library on your disk, so you can reuse them later. One cool use of this, coupled to the DXF import function, is that you can very easily use symbol libraries in DXF format (if your symbols are in dwg format, the free <a rel="nofollow" class="external text" href="http://www.opendesign.com/guestfiles/tx_sdk">"Teigha file Converter"</a> application can batch-convert all your library at once).
|
||
</p><p>Once you have a library of DXF symbols, just drag one of them and drop it on top of your open FreeCAD window and it will be imported in the current document. It won't be imported as a compound, but all of the symbol geometry will be placed in a separate group, so it is easy to select it all and simply press "Upgrade". Beware that AutoCAD users have the bad habit of drawing things very far from the origin point (0,0,0), your inserted symbol can then lie very far from your drawing zone.
|
||
</p><p>So, back to our drawing:
|
||
</p>
|
||
<ul><li> Import a sanitary block if you have one, or pick one on the <a rel="nofollow" class="external text" href="http://cben.net/">Cad Exchange</a> site, and convert it to DXF with the <a rel="nofollow" class="external text" href="http://www.opendesign.com/guestfiles/tx_sdk">"Teigha file Converter"</a></li>
|
||
<li> Create the geometry for a door, <a href="Draft_Upgrade.html" title="Draft Upgrade">upgrade</a> it to a compound, <a href="Draft_Move.html" title="Draft Move">copy</a> it to the other door location, <a href="Draft_Downgrade.html" title="Draft Downgrade">downgrade</a> it, adjust the elements to the new size, and upgrade it again</li>
|
||
<li> Do the same for the windows</li></ul>
|
||
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-blocks.jpg" class="image"><img alt="Draft-tutorial-blocks.jpg" src="Draft-tutorial-blocks.jpg" width="800" height="474" /></a>
|
||
</p>
|
||
<h3><span class="mw-headline" id="Dimensions_and_annotations">Dimensions and annotations</span></h3>
|
||
<p>Now that our plan is more or less ready, we can add <a href="Draft_Dimension.html" title="Draft Dimension">dimensions</a> and <a href="Draft_Text.html" title="Draft Text">texts</a>. This is usually pretty straightforward, so there is probably no need to explain much. Just try to dimension everything, and as a convention, always start the dimension lines from the main wall line, not the finishing layer. One thing is good to know, sometimes you draw a text or a dimension over a filled area, and the filled area will cover your dimension. There is a simple way to fix that, it is by downgrading and upgrading again the filled area. It will then be displayed under the other elements.
|
||
</p><p>The dimension and text will by default have the same text height, which can be changed in the <a href="Draft_Preferences.html" title="Draft Preferences">Draft Preferences</a> page. You can then edit individually each text height.
|
||
</p><p>Unfortunately certain non-geometry objects like texts and dimension are still not selectable in the FreeCAD 3D view, you must therefore select them in the tree, and you won't be able to snap to them, but this will probably be solved in a near future. It is also not possible at the moment to choose a font style. To align dimensions, at the moment, you need to draw a line first, then snap your dimensions to that line.
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-dims.jpg" class="image"><img alt="Draft-tutorial-dims.jpg" src="Draft-tutorial-dims.jpg" width="800" height="602" /></a>
|
||
</p>
|
||
<h3><span class="mw-headline" id="Organizing">Organizing</span></h3>
|
||
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-typical-tree.jpg" class="image"><img alt="Draft-tutorial-typical-tree.jpg" src="Draft-tutorial-typical-tree.jpg" width="156" height="250" /></a></div>
|
||
<p>Finally, we can add a few things to finish our plan, like putting vegetation around the cabin. We can simply copy a few trees from our imported DXF drawing and scale them down with the <a href="Draft_Scale.html" title="Draft Scale">scale</a> tool, to for example (0.5,0.5). We can also change the line thickness of a couple of objects, for example make the walls thicker, and change the color of some things. And we can organize all our elements in groups.
|
||
</p><p>The ability to organize your work in nested groups is surely one of the big advantages of groups over traditional work with layers. In this tutorial, I grouped my objects by type, inside the Plan group. For example, instead of having one big layer with all dimensions of your drawing, each part of the drawing will contain their own dimensions group, making it extremely easy to organize your drawing.
|
||
</p><p>You might feel a loss at first if you come from a traditional drawing program like AutoCAD, but you'll quickly see the power that this method brings.
|
||
</p><p>For example, all our construction geometry can go in a separate group, that we'll turn off. Maybe later we'll need to make some changes, and it will be handy to have that geometry available.
|
||
</p><p>So, now we are ready to draw other parts...
|
||
</p><p><br />
|
||
</p>
|
||
<h2><span class="mw-headline" id="Drawing_the_elevations">Drawing the elevations</span></h2>
|
||
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial-elevation.jpg" class="image"><img alt="Draft-tutorial-elevation.jpg" src="Draft-tutorial-elevation.jpg" width="232" height="300" /></a></div>
|
||
<p>Since in this exercise we are going to stay in pure 2D, we will draw our elevations and sections directly. In more advanced architecture environments (what FreeCAD will hopefully become in some future), we wouldn't need to draw the elevations. We would model the building in 3D and then generate the different views automatically. But for the sake of this exercise (and also because all the needed tools are still not implemented in FreeCAD), we'll do it by hand, like in the old times.
|
||
</p><p>We'll begin with the rear wall elevation, because the way our plan is oriented, it can be drawn directly below it, without the need to rotate the view. We will simply draw construction lines from the plan, set horizontal lines to the desired heights, I set the 0.00 level, the +0.15 level of the slab, then heights for the windows, and the roof slab at +2.50. We can then draw our geometry very quickly on top of it.
|
||
</p><p>We can then place a couple of annotations, dimensions, and upgrade some of the objects so they appear filled with a color. Finally, we can make a bit of cleaning by creating a "South Elevation" group, then subgroups for our construction geometry and annotations, and place all of our new objects in them.
|
||
</p>
|
||
<div style="clear:both"></div>
|
||
<p><br />
|
||
</p>
|
||
<h3><span class="mw-headline" id="Rotating_the_view.2C_and_creating_macros">Rotating the view, and creating macros</span></h3>
|
||
<p>Now, we need to draw other elevations of our little building. The simplest way would be to draw them directly under the plan view, as we did with the south elevation. For this, it would be handy to be able to rotate the view by 90°, so we can continue drawing our elevations "on foot". Unfortunately, FreeCAD has at the moment no "Rotate View" tool. But, fortunately, it has tools for us to easily create our own tools, called Macros. So, this is a good opportunity for us to try something easy.
|
||
</p><p>Macros, as well as all scripting in FreeCAD, is done in a very simple programming language called <a rel="nofollow" class="external text" href="http://www.python.org">python</a>. You can write very complex programs in FreeCAD in python, but you can also use it to perform very simple operations where there still isn't a proper FreeCAD toolbar icon, such as our Rotate The View tool. So, first thing to do, open the Report view, if you closed it, and select the python tab. In there, type (or copy/paste) the following code:
|
||
</p>
|
||
<pre>import math
|
||
from pivy import coin
|
||
cam = Gui.ActiveDocument.ActiveView.getCameraNode()
|
||
rot = coin.SbRotation()
|
||
rot.setValue(coin.SbVec3f(0,0,1),math.pi/2)
|
||
cam.orientation = rot </pre>
|
||
<p>This small script will simply rotate the view by 90° (left). For rotating by -90° (right), you would simply change math.pi/2 by -math.pi/2. If you would like to learn more about python scripting in FreeCAD, there is an extensive <a href="Scripting.html" class="mw-redirect" title="Scripting">Scripting</a> section on this wiki.
|
||
</p><p>Now, we need to do one more step, which is save our piece of code in a macro, so we can reuse it later. So, instead of pasting our code in the python interpreter, let's open the macro manager (Tools -> Macros), create a new macro, press the "Edit" button and paste our code in it. Close the macro editor tab, and the macro will be saved.
|
||
</p><p>The macros can behave like any other FreeCAD tool. With the Tools -> Customize menu, we can add an icon to our macro, a keyboard shortcut, and add it to a toolbar.
|
||
</p>
|
||
<h3><span class="mw-headline" id="Drawing_the_rotated_views">Drawing the rotated views</span></h3>
|
||
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft-tutorial05.jpg" class="image"><img alt="Draft-tutorial05.jpg" src="340px-Draft-tutorial05.jpg" width="340" height="250" srcset="/wiki/images/thumb/6/66/Draft-tutorial05.jpg/510px-Draft-tutorial05.jpg 1.5x, /wiki/images/6/66/Draft-tutorial05.jpg 2x" /></a></div>
|
||
<p>Now that we can rotate the view at will, we can draw our other elevations. The easiest way is to draw your elevation at the right place under the plan view, and use a "mirror" (a 45°-oriented line) to push the height lines from another elevation. This way, drawing goes pretty fast.
|
||
</p>
|
||
<div style="clear:both"></div>
|
||
<p>Finally, we draw 2 others elevations, and since the fourth one is the same as the second one (but mirrored), we will skip it. We can then draw a cross section, and our drawing is complete:
|
||
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Fctutorial-complete.jpg" class="image"><img alt="Fctutorial-complete.jpg" src="Fctutorial-complete.jpg" width="800" height="725" /></a>
|
||
</p><p>To be continued...
|
||
</p><p><br />
|
||
</p><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=Draft_tutorial_Outdated/ru&oldid=212194">http://www.freecadweb.org/wiki/index.php?title=Draft_tutorial_Outdated/ru&oldid=212194</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> |