Import OpenSCAD code: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(relink module to workbench)
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>

<!--T:1-->
<!--T:1-->
{{TutorialInfo
{{TutorialInfo
Line 10: Line 12:
}}
}}


== Introduction == <!--T:2-->
== Introduction == <!--T:10-->
OpenSCAD, like FreeCAD, is an open source 3D CAD program. But while FreeCAD uses a visual approach, OpenSCAD uses a programming interface to perform 3D operations.


<!--T:7-->
<!--T:2-->
The OpenSCAD workbench can be used to import OpenSCAD object code and to have access to some of the mesh operations possible with OpenSCAD.
OpenSCAD, like FreeCAD, is an open source 3D CAD program. But while FreeCAD uses a visual approach, OpenSCAD uses a programming interface to perform 3D operations. The OpenSCAD workbench can be used to import OpenSCAD object code and to have access to some of the mesh operations possible with OpenSCAD.


== Installing OpenSCAD == <!--T:3-->
== Installing OpenSCAD == <!--T:11-->
Mac Users could download the binaries from the [http://www.openscad.org/ OpenSCAD homepage].<br />
Linux Ubuntu/Mint users can install from the system repositories or from the [http://www.openscad.org/ OpenSCAD homepage].<br />
Windows users can download the program from the [http://www.openscad.org/ OpenSCAD homepage].<br />
Since only the OpenSCAD executable is needed by FreeCAD, Windows users can install the portable version if they like.<br />


<!--T:3-->
== Configuring OpenSCAD workbench in FreeCAD == <!--T:4-->
* Linux users can install from the relevant distribution repositories, such as Debian, openSUSE, Mint, Unbuntu, etc. or from the [http://www.openscad.org/ OpenSCAD homepage].
*Open FreeCAD
* Mac Users can download the binaries from the [http://www.openscad.org/ OpenSCAD homepage].
*Switch to [[OpenSCAD_Module|OpenSCAD workbench]]
* Windows users can download the program from the [http://www.openscad.org/ OpenSCAD homepage]. Since only the OpenSCAD executable is needed by FreeCAD, Windows users can install the portable version if they like.
*Choose Edit > Preferences > OpenSCAD from the Top menu
**Point FreeCAD to the OpenSCAD executable (section: General OpenSCAD settings)
**all the other values on the settings-page could be left at default


== The sample model == <!--T:5-->
== Configuring OpenSCAD workbench in FreeCAD == <!--T:12-->

Here we will use the example005.scad-file from the (old) OpenSCAD-examples, but feel free to use any scad-file of your liking.<br />
<!--T:4-->
* Open FreeCAD.
* Switch to [[OpenSCAD_Workbench|OpenSCAD workbench]].
* Choose Edit Preferences OpenSCAD from the Top menu.
** Point FreeCAD to the OpenSCAD executable (section: General OpenSCAD settings).
** All the other values on the settings-page could be left at default.

== The sample model == <!--T:13-->

<!--T:5-->
Here we will use the example005.scad file from the (old) OpenSCAD examples, but feel free to use any scad file of your liking.

</translate>
[[Image:TutorialOpenSCAD SampleFile.jpg|800px]]
[[Image:TutorialOpenSCAD SampleFile.jpg|800px]]
<translate>


== Importing the model in FreeCAD == <!--T:6-->
== Importing the model in FreeCAD == <!--T:14-->

*In FreeCAD just choose {{KEY| File}} → {{KEY| Open}} and choose the .scad-File you want to import.
<!--T:6-->
*It is not important which workbench is activated, the OpenSCAD workbench itself is only needed when applying special features to your model
*FreeCAD will import the OpenSCAD-File and build up a tree with primitives and boolean operations
* In FreeCAD just choose {{KEY| File}} {{KEY| Open}} and choose the .scad file you want to import.
* It is not important which workbench is activated, the OpenSCAD workbench itself is only needed when applying special features to your model.
*Tutorial finished
* FreeCAD will import the OpenSCAD file and build up a tree with primitives and boolean operations
<br />
* Tutorial finished.

</translate>
[[Image:TutorialOpenSCAD_ImportFile.jpg|800px]]
[[Image:TutorialOpenSCAD_ImportFile.jpg|800px]]
<translate>


==Related== <!--T:9-->


<!--T:8-->
* [[FreeCAD_Howto_Import_Export|FreeCAD Howto Import Export]]
* [[Import_Export_Preferences|Import Export Preferences]]


</translate>
</translate>
[[Category:OpenSCAD{{#translation:}}]]
{{clear}}
<languages/>

Latest revision as of 18:38, 22 August 2021

Tutorial
Topic
Import OpenSCAD code
Level
Beginner
Time to complete
30 minutes
Authors
r-frank
FreeCAD version
0.16.6704
Example files
See also
None

Introduction

OpenSCAD, like FreeCAD, is an open source 3D CAD program. But while FreeCAD uses a visual approach, OpenSCAD uses a programming interface to perform 3D operations. The OpenSCAD workbench can be used to import OpenSCAD object code and to have access to some of the mesh operations possible with OpenSCAD.

Installing OpenSCAD

  • Linux users can install from the relevant distribution repositories, such as Debian, openSUSE, Mint, Unbuntu, etc. or from the OpenSCAD homepage.
  • Mac Users can download the binaries from the OpenSCAD homepage.
  • Windows users can download the program from the OpenSCAD homepage. Since only the OpenSCAD executable is needed by FreeCAD, Windows users can install the portable version if they like.

Configuring OpenSCAD workbench in FreeCAD

  • Open FreeCAD.
  • Switch to OpenSCAD workbench.
  • Choose Edit → Preferences → OpenSCAD from the Top menu.
    • Point FreeCAD to the OpenSCAD executable (section: General OpenSCAD settings).
    • All the other values on the settings-page could be left at default.

The sample model

Here we will use the example005.scad file from the (old) OpenSCAD examples, but feel free to use any scad file of your liking.

Importing the model in FreeCAD

  • In FreeCAD just choose File Open and choose the .scad file you want to import.
  • It is not important which workbench is activated, the OpenSCAD workbench itself is only needed when applying special features to your model.
  • FreeCAD will import the OpenSCAD file and build up a tree with primitives and boolean operations
  • Tutorial finished.

Related