OpenSCAD AddOpenSCADElement
Ubicación en el Menú |
---|
OpenSCAD -> Añadir un elemento OpenSCAD |
Entornos de trabajo |
OpenSCAD |
Atajo de teclado por defecto |
Ninguno |
Introducido en versión |
- |
Ver también |
Ninguno |
Descripción
Añade un elemento OpenSCAD introduciendo código OpenSCAD en el panel de tareas y ejecutando el binario de OpenSCAD binary (requiere de OpenSCAD)
Cuando se selecciona 'una malla', OpenSCAD renderiza una malla.
Cada vez que se presiona Añadir se ejecuta el código y se importan elementos.
Esta función no proporciona ningún control de sintaxis o errores proporcionado más allá de no ofrecer un resultado de OpenSCAD. Si los elementos no especifican la ruta a utilizar <> e incluir<> las declaraciones podrían estar rotas.
Las bibliotecas deberían ser accesibles por defecto, mientras que a los ejemplos se podría acceder así
include <../examples/example001.scad>;
incluiría el primer ejemplo conocido también como el icono de OpenSCAD
Setup OpenSCAD within FreeCAD
Note: 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
- Switch to the
OpenSCAD Workbench via Menu → View Workbench → OpenSCAD
- Open the preferences dialog Menu
→ Edit → Preferences
- Click on "OpenSCAD" on the left plane
- Click on the button labled ... in General Settings → General OpenSCAD Settings → OpenSCAD executable to browse the directory or enter the path (e.g. Ubuntu based Linux distributions
/usr/bin/openscad
) directly into the line input right to the button - Close and restart FreeCAD
- Result: A new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench
Note: It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).
Starting from v0.14 and above FreeCAD will search for the OpenSCAD executable if the setting mentioned above is empty.

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting