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

241 lines
16 KiB
HTML

<html><head><title>Dxf Importer Install/hr</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Dxf Importer Install/hr</h1></div>
<div id="mw-content-text" lang="hr" 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">SampleClass
</td></tr>
<tr>
<th class="ctOdd">Level
</th></tr>
<tr>
<td class="ctEven">Medium user
</td></tr>
<tr>
<th class="ctOdd">Time to complete
</th></tr>
<tr>
<td class="ctEven">15 minutes
</td></tr>
<tr>
<th class="ctOdd">Author
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Mario52" title="User:Mario52">Mario52</a>
</td></tr>
<tr>
<th class="ctOdd">FreeCAD version
</th></tr>
<tr>
<td class="ctEven">All
</td></tr>
<tr>
<th class="ctOdd">Example File(s)
</th></tr>
<tr>
<td class="ctEven">None
</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="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#First_step:"><span class="tocnumber">3</span> <span class="toctext">First step:</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#Second_step:"><span class="tocnumber">4</span> <span class="toctext">Second step:</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Third_step:"><span class="tocnumber">5</span> <span class="toctext">Third step:</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Fourth_step:"><span class="tocnumber">6</span> <span class="toctext">Fourth step:</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Links"><span class="tocnumber">7</span> <span class="toctext">Links</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h3><span class="mw-headline" id="Description">Description</span></h3>
<p>This page explains step by step the margin to follow to install the package Draft-dxf-import yorikvanhavre for you to upload files in DXF format FreeCAD and import DWG files using the teighafileconverter utility.
This installation was made in the Windows Vista environment, but the principle of the system is the same for linux
</p>
<h3><span class="mw-headline" id="First_step:">First step:</span></h3>
<p>identify the macros folder FreeCAD
</p><p><b>1&#160;:</b> open FreeCAD
</p>
<div class="mw-collapsible mw-collapsed toccolours">
<p>If you have a version from 0.15 you can use the automatic update DXF package (expand to see)
</p>
<div class="mw-collapsible-content">
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_01b.png" class="image" title="Automatic DXF install"><img alt="Automatic DXF install" src="640px-Dxf_Importer_Install_01b.png" width="640" height="627" srcset="/wiki/images/2/2d/Dxf_Importer_Install_01b.png 1.5x" /></a></div></div>
<div style="clear:both"></div>
</div>
</div>
<p><br />
<b>2&#160;:</b> click <b>Menu &gt; Macro &gt; Macros</b> or the click the bottom <a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_DlgMacroExecuteDirect.svg" class="image"><img alt="Std DlgMacroExecuteDirect.svg" src="Std_DlgMacroExecuteDirect.svg" width="18" height="18" /></a> "Open a dialog to let you execute a macro Recorded"
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_01.png" class="image" title="open FreeCAD"><img alt="open FreeCAD" src="Dxf_Importer_Install_01.png" width="800" height="554" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>3&#160;:</b> one dialog box open
</p><p><b>4&#160;:</b> copy the address of "Macro destination" (here <b>C:\Users\d\AppData\Roaming\FreeCAD\</b>)
In Ubuntu, this is normally <b>/home/your_user_name/.FreeCAD</b>
</p><p><br />
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_02.png" class="image" title="Open a dialog to let you execute a macro Recorded"><img alt="Open a dialog to let you execute a macro Recorded" src="Dxf_Importer_Install_02.png" width="800" height="554" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>5&#160;:</b> paste the address into your browser and confirm
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_03.png" class="image" title="paste the address into your browser"><img alt="paste the address into your browser" src="Dxf_Importer_Install_03.png" width="800" height="478" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>6&#160;:</b> leave open the explorer
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_04.png" class="image"><img alt="Dxf Importer Install 04.png" src="Dxf_Importer_Install_04.png" width="800" height="479" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>7&#160;:</b> Close FreeCAD
</p>
<h3><span class="mw-headline" id="Second_step:">Second step:</span></h3>
<p>Download the files
</p><p><b>8&#160;:</b> download files on the page <a rel="nofollow" class="external free" href="https://github.com/yorikvanhavre/Draft-dxf-importer">https://github.com/yorikvanhavre/Draft-dxf-importer</a>
</p><p><b>9&#160;:</b> and click the icon button <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Download ZIP</span> for the default version.
</p>
<div class="mw-collapsible mw-collapsed toccolours">
<p>(or choice for your development version see down page) (expand to see)
</p>
<div class="mw-collapsible-content">
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_05b.png" class="image" title="Automatic DXF install"><img alt="Automatic DXF install" src="640px-Dxf_Importer_Install_05b.png" width="640" height="443" srcset="/wiki/images/b/bb/Dxf_Importer_Install_05b.png 1.5x" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
</div>
</div>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_05.png" class="image" title="download files"><img alt="download files" src="Dxf_Importer_Install_05.png" width="800" height="561" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>10&#160;:</b> you must extract the file to a temporary directory (here <b>c:\tmp</b>)
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_06.png" class="image" title="extract the file"><img alt="extract the file" src="Dxf_Importer_Install_06.png" width="800" height="547" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>11&#160;:</b> the decompresser creates a new folder named "<b>Draft-dxf-import-master</b>"
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_07.png" class="image" title="decompresser creates a new folder"><img alt="decompresser creates a new folder" src="Dxf_Importer_Install_07.png" width="800" height="537" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>12&#160;:</b> the files are in this folder select all the files and "Cut"
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_08.png" class="image" title="select all the files and Cut"><img alt="select all the files and Cut" src="Dxf_Importer_Install_08.png" width="800" height="550" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>13&#160;:</b> paste the files in the folder FreeCAD macros in the explorer open (step 6) (<b>C:\Users\d\AppData\Roaming\FreeCAD\</b>)
</p><p>In Ubuntu, this is normally <b>/home/your_user_name/.FreeCAD</b>
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_09.png" class="image" title="paste the files in the folder"><img alt="paste the files in the folder" src="Dxf_Importer_Install_09.png" width="800" height="480" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>14&#160;:</b> Open FreeCAD click the button <a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_DlgMacroExecuteDirect.svg" class="image"><img alt="Std DlgMacroExecuteDirect.svg" src="Std_DlgMacroExecuteDirect.svg" width="18" height="18" /></a> , the necessary files in DXF format are present, close the window "Execute macro
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_15.png" class="image" title="open FreeCAD"><img alt="open FreeCAD" src="Dxf_Importer_Install_15.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>15&#160;:</b> load your DXF file
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_10.png" class="image" title="load your DXF file"><img alt="load your DXF file" src="Dxf_Importer_Install_10.png" width="800" height="409" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>16&#160;:</b> DXF file can be used
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_11.png" class="image" title="DXF file can be used"><img alt="DXF file can be used" src="Dxf_Importer_Install_11.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>VERSIONS</b>
</p><p>This repository contains several versions of the DXF importer. The default version, that you download when you press the "download ZIP" button above, is always the version needed by the current stable version of FreeCAD.
</p><p>If you use another version of FreeCAD, for example a development version or an older version, you might also need another verison of this DXF library. You can find out which version of the DXF library is needed by your version of FreeCAD, by entering the following code in the FreeCAD python console:
</p>
<pre>import importDXF
print importDXF.CURRENTDXFLIB </pre>
<h3><span class="mw-headline" id="Third_step:">Third step:</span></h3>
<p>Download Teigha converter for use DWG files
</p><p><b>17&#160;:</b> teighafileconverter download on <a rel="nofollow" class="external text" href="http://www.opendesign.com/guestfiles/teighafileconverter">teighafileconverter page</a>
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_12.png" class="image" title="download Teigha"><img alt="download Teigha" src="Dxf_Importer_Install_12.png" width="800" height="561" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>18&#160;:</b> choose the version that suits your Qt and OS
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_13.png" class="image" title="choose the version"><img alt="choose the version" src="Dxf_Importer_Install_13.png" width="800" height="558" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>19&#160;:</b> and install it on your system
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_14.png" class="image" title="install it on your system"><img alt="install it on your system" src="Dxf_Importer_Install_14.png" width="641" height="523" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>20&#160;:</b> open FreeCAD and click the button <a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_DlgMacroExecuteDirect.svg" class="image"><img alt="Std DlgMacroExecuteDirect.svg" src="Std_DlgMacroExecuteDirect.svg" width="18" height="18" /></a> "Open a dialog to let you execute a macro Recorded"
</p><p><b>21&#160;:</b> close the macros window
</p><p><b>22&#160;:</b> and activate the Draft workbench
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_16.png" class="image" title="activate the Draft workbebch"><img alt="activate the Draft workbebch" src="Dxf_Importer_Install_16.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>23&#160;:</b> now let's get into the options page DXF / DWG click "Menu &gt; Edit &gt; Preferences"
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_17.png" class="image" title="Menu &gt; Preferences"><img alt="Menu &gt; Preferences" src="Dxf_Importer_Install_17.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>24&#160;:</b> select "Draft &gt; DXF / DWG options" tab
</p><p><b>25&#160;:</b> In the DWG format option section, click the 3 points <b>...</b>
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_18.png" class="image" title="Draft &gt; DXF / DWG options"><img alt="Draft &gt; DXF / DWG options" src="Dxf_Importer_Install_18.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>26&#160;:</b> to give way Teigha converter that FreeCAD will use to convert DWG to DXF
</p><p><b>27&#160;:</b> enter in the directory here in Window here "<b>C:/Program Files/ODA/Teigha File Converter 4.00.1/</b>" and select TeighaFileConverter.exe and confirm
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_19.png" class="image" title="DWG format option"><img alt="DWG format option" src="Dxf_Importer_Install_19.png" width="800" height="556" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>28&#160;:</b> the operation is completed click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span> you can test a DWG file
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_20.png" class="image" title="directory Teigha File Converter 4.00.1"><img alt="directory Teigha File Converter 4.00.1" src="Dxf_Importer_Install_20.png" width="800" height="553" /></a></div>
<div style="clear:both"></div>
<p><br />
</p>
<h3><span class="mw-headline" id="Fourth_step:">Fourth step:</span></h3>
<p>Using Teigha. Teigha is a full program and you can use it without FreeCAD
</p>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dxf_Importer_Install_21.png" class="image" title="directory Teigha File Converter 4.00.1"><img alt="directory Teigha File Converter 4.00.1" src="Dxf_Importer_Install_21.png" width="717" height="683" /></a></div>
<div style="clear:both"></div>
<p><br />
<b>1&#160;:</b> Imput folder: folder path or are the DXF or DWG files to convert
</p><p><b>2&#160;:</b> Output folder: path to the destination folder for the converted files
</p><p><b>3&#160;:</b> Recurse folder:
</p><p><b>4&#160;:</b> Audit:
</p><p><b>5&#160;:</b> Input files filter: filter for only DXF, DWG or DXF and DWG
</p><p><br />
<b>6&#160;:</b> Output release: the file will be converted to the format and the selected version
</p><p><b>7&#160;:</b> Start: launches the process
</p>
<h3><span class="mw-headline" id="Links">Links</span></h3>
<p>Video tutorial <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=wHxTWuDhc3M">FreeCAD Tutorial 24 - DXF/DWG Import </a>
</p>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Dxf_Importer_Install/hr&amp;oldid=287298">http://www.freecadweb.org/wiki/index.php?title=Dxf_Importer_Install/hr&amp;oldid=287298</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>