87 lines
4.8 KiB
HTML
87 lines
4.8 KiB
HTML
<html><head><title>OpenSCAD AddOpenSCADElement/en</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>OpenSCAD AddOpenSCADElement/en</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" 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=".7B.7B.7BName.2Fen.7D.7D.7D"><a href="https://www.freecadweb.org/wiki/index.php?title=File:OpenSCAD_AddOpenSCADElement.png" class="image"><img alt="OpenSCAD AddOpenSCADElement.png" src="32px-OpenSCAD_AddOpenSCADElement.png" width="32" height="32" srcset="/wiki/images/thumb/c/c4/OpenSCAD_AddOpenSCADElement.png/48px-OpenSCAD_AddOpenSCADElement.png 1.5x, /wiki/images/c/c4/OpenSCAD_AddOpenSCADElement.png 2x" /></a> {{{Name/en}}}</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">OpenSCAD -> Add OpenSCAD Element
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="OpenSCAD_Module.html" title="OpenSCAD Module">OpenSCAD</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">None
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</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="#.7B.7B.7BName.2Fen.7D.7D.7D"><span class="tocnumber">1</span> <span class="toctext">{{{Name/en}}}</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-1"><a href="#Description"><span class="tocnumber">1.1</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-2 tocsection-2"><a href="#Initial_set_up_from_within_FreeCAD"><span class="tocnumber">1.2</span> <span class="toctext">Initial set up from within FreeCAD</span></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h4><span class="mw-headline" id="Description">Description</span></h4>
|
|
<p>Add an OpenSCAD element by entering OpenSCAD code into the task panel and executing the OpenSCAD binary (requires OpenSCAD)
|
|
</p><p>When 'as mesh' is selected, OpenSCAD renders a Mesh.
|
|
</p><p>Each time Add is pressed the OpenSCAD code is executed and elements are imported.
|
|
</p><p>If OpenSCAD returns successfully, its messages are displayed as warnings in the report window. This will be the case if the path to imported, included and used files is broken.
|
|
In case of undesired results it is highly recommend to have a look at the report windows, as there might be a lot of other output, created by the importer.
|
|
If OpenSCAD fails, its messages will be loged as errors.
|
|
Libraries should be accessible as usual, whereas example can be reached as stated below
|
|
</p>
|
|
<pre>include <../examples/example001.scad>; </pre>
|
|
<p>would include the first examples also known as the OpenSCAD icon
|
|
</p>
|
|
<h4><span class="mw-headline" id="Initial_set_up_from_within_FreeCAD">Initial set up from within FreeCAD</span></h4>
|
|
<ul><li>OpenSCAD needs to be installed on your computer before FreeCAD will have this functionality
|
|
<ul><li>install OpenSCAD in the appropriate manner for your operating system. See <a rel="nofollow" class="external text" href="http://www.openscad.org/">the OpenSCAD web site</a> for more information</li></ul></li>
|
|
<li>FreeCAD needs to be told where to find the OpenSCAD executable
|
|
<ul><li>Switch to the OpenSCAD Workbench Menu -> View Workbench -> OpenSCAD</li>
|
|
<li>Open the preferences dialog Menu -> Edit -> Preferences</li>
|
|
<li>Click on "OpenSCAD" on the left plane</li>
|
|
<li>Click on the button labled "..." in General Settings -> General OpenSCAD Settings -> OpenSCAD executable to browser the directory or enter the path (e.g. Ubuntu based Linux distributions /usr/bin/openscad) directly into the line input right to the button</li>
|
|
<li>close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench</li></ul></li>
|
|
<li>It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).</li></ul>
|
|
<p>Starting from FreeCAD Version 0.14, FreeCAD will search for the OpenSCAD executable if the setting mentioned above is empty.
|
|
</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=OpenSCAD_AddOpenSCADElement/en&oldid=214266">http://www.freecadweb.org/wiki/index.php?title=OpenSCAD_AddOpenSCADElement/en&oldid=214266</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> |