OpenSCAD AddOpenSCADElement/de: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "Jedesmal beim Drücken von Einfügen wird OpenSCAD-Code ausgeführt und Elemente werden importiert.")
Line 22: Line 22:
When 'as mesh' is selected, OpenSCAD renders a Mesh.
When 'as mesh' is selected, OpenSCAD renders a Mesh.


Jedesmal beim Drücken von Einfügen wird OpenSCAD-Code ausgeführt und Elemente werden importiert.
Each time Add is pressed the OpenSCAD code is executed and elements are imported.


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.
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.

Revision as of 22:21, 19 August 2021

OpenSCAD HinzufügenOpenSCADElement

Menüeintrag
OpenSCAD -> Hinzufügen OpenSCAD Element
Arbeitsbereich
OpenSCAD
Standardtastenkürzel
Keiner
Eingeführt in Version
-
Siehe auch
Keiner

Beschreibung

Füge ein OpenSCAD Element hinzu, indem du OpenSCAD Code in das Aufgabenfeld eingibst und die OpenSCAD Binärdatei ausführst (erfordert OpenSCAD).

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

Jedesmal beim Drücken von Einfügen wird OpenSCAD-Code ausgeführt und Elemente werden importiert.

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 logged as errors. Libraries should be accessible 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

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

Hinweis: Es ist ebenso möglich einen anderen Optionalen Paramter hinzuzufügen, der die maximalen Seiten eines Polygons steuert bevor es als ein Kreis angesehen wird (fn).

Beginnend mit version 0.14 and above sucht FreeCAD nach der OpenSCAD ausführbaren wenn oben genannte Einstellung leer ist.