OpenSCAD AddOpenSCADElement/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "Lorsque '''mesh''' est sélectionné, '''[http://www.openscad.org/ OpenSCAD]''' retourne un '''maillage'''.")
(Created page with "Chaque fois que vous appuyez sur '''Ajouter''', le code [http://www.openscad.org/ OpenSCAD] est exécuté, et les éléments sont importés.")
Line 7: Line 7:
Lorsque '''mesh''' est sélectionné, '''[http://www.openscad.org/ OpenSCAD]''' retourne un '''maillage'''.
Lorsque '''mesh''' est sélectionné, '''[http://www.openscad.org/ OpenSCAD]''' retourne un '''maillage'''.


Chaque fois que vous appuyez sur '''Ajouter''', le code [http://www.openscad.org/ OpenSCAD] est exécuté, et les éléments sont importés.
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 19:19, 22 May 2014

OpenSCAD_AddOpenSCADElement

Emplacement du menu
OpenSCAD → Add OpenSCAD Element
Ateliers
OpenSCAD
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Aucun

Description

Ajoutez un élément OpenSCAD en entrant le code OpenSCAD dans le panneau des tâches, puis exécuter le binaire de OpenSCAD (il faut que OpenSCAD soit installé sur votre système)

Lorsque mesh est sélectionné, OpenSCAD retourne un maillage.

Chaque fois que vous appuyez sur Ajouter, le code OpenSCAD est exécuté, et les éléments sont importés.

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

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
    • Switch to the OpenSCAD Workbench 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 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
    • close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench
  • 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 FreeCAD Version 0.14, FreeCAD will search for the OpenSCAD executable if the setting mentioned above is empty.