OpenSCAD AddOpenSCADElement: Difference between revisions

From FreeCAD Documentation
(template OpenSCAD_AddOpenSCADElement/it)
No edit summary
Line 14: Line 14:
<pre>include <../examples/example001.scad>;</pre>
<pre>include <../examples/example001.scad>;</pre>
would include the first examples also known as the OpenSCAD icon
would include the first examples also known as the OpenSCAD icon


====Initial set up from within FreeCAD====
*OpenSCAD needs to be installed on your computer before FreeCAD will have this functionality
**install OpenSCAD in the appropriate manner for your operating system. See [http://http://www.openscad.org/ the OpenSCAD web site] for more information
*FreeCAD needs to be told where to find the OpenSCAD executable
**Start FreeCAD and go to the Tools menu, select "edit parameters"
**In the left window look in Preferences....Mod...OpenSCAD. Click on OpenSCAD
**then in the right window "right click", select New String Item
**a pop up box will appear asking for the name, enter the name openscadexecutable,
**the pop up box will now ask for your text, enter the path to the OpenSCAD executable (e.g. Ubuntu based Linux distributions /usr/bin/openscad)
**close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench




{{languages | {{es|OpenSCAD_AddOpenSCADElement/es}} {{fr|OpenSCAD_AddOpenSCADElement/fr}} {{it|OpenSCAD_AddOpenSCADElement/it}} }}
{{languages | {{es|OpenSCAD_AddOpenSCADElement/es}} {{fr|OpenSCAD_AddOpenSCADElement/fr}} {{it|OpenSCAD_AddOpenSCADElement/it}} }}

Revision as of 12:32, 14 February 2013

OpenSCAD_AddOpenSCADElement

Menu location
OpenSCAD -> Add OpenSCAD Element
Workbenches
OpenSCAD
Default shortcut
None
Introduced in version
-
See also
None

Description

Add an OpenSCAD element by entering OpenSCAD code into the task panel and executing the OpenSCAD binary (requires OpenSCAD)

When 'as mesh' is selected, OpenSCAD renders a Mesh.

Each time Add is pressed the OpenSCAD code is executed and elements are imported.

This function does not provide any syntax check or error providing beyond a missing OpenSCAD output. If elements are missing the path specification for use<> and include<> statements might be broken.

Libraries should be accessibles as usual, whereas example can be reached as stated below

include <../examples/example001.scad>;

would include the first examples also known as the OpenSCAD icon


Initial set up from within FreeCAD

  • OpenSCAD needs to be installed on your computer before FreeCAD will have this functionality
    • install OpenSCAD in the appropriate manner for your operating system. See the OpenSCAD web site for more information
  • FreeCAD needs to be told where to find the OpenSCAD executable
    • Start FreeCAD and go to the Tools menu, select "edit parameters"
    • In the left window look in Preferences....Mod...OpenSCAD. Click on OpenSCAD
    • then in the right window "right click", select New String Item
    • a pop up box will appear asking for the name, enter the name openscadexecutable,
    • the pop up box will now ask for your text, enter the path to the OpenSCAD executable (e.g. Ubuntu based Linux distributions /usr/bin/openscad)
    • close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench


Available translations of this page: