Power users hub/de: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>


[[Image:Crystal_Clear_app_terminal.png|right|150]]
[[Image:Crystal_Clear_app_terminal.png|right|150]]
Line 4: Line 5:
Diese Seite ist ein guter Startpunkt, um tief in FreeCAD einzusteigen. Hier kann man lernen, wie man FreeCAD für besondere Anforderungen anpasst.
Diese Seite ist ein guter Startpunkt, um tief in FreeCAD einzusteigen. Hier kann man lernen, wie man FreeCAD für besondere Anforderungen anpasst.


<div class="mw-translate-fuzzy">
These pages are in early stage of development. If you can't find the information you are looking for, or have found useful information somewhere we have not linked to, then please leave a comment on the [http://forum.freecadweb.org/ forum], or, why not? [[Help_FreeCAD| Add some more content here yourself!]]
Diese Seiten befinden sich im Aufbau. Falls du die Informationen, nach denen du suchst, nicht findest, oder aber irgendwo nützliche Informationen gefunden hast, die nicht verlinkt ist, hinterlasse doch bitte einen Kommentar auf [[Talk:Power_users_hub|the talk page]] oder [[Help_FreeCAD| füge das Material selbst hinzu]].
</div>


<div class="mw-translate-fuzzy">
One of the nicest features of FreeCAD is that you can script and extend it extremely far without the need to compile anything or touch the source code. All the scripting part is done in [http://en.wikipedia.org/wiki/Python_(programming_language) Python], a very powerful but simple programming language. With simple Python scripts, you have total access to about any part of FreeCAD. For example, you can:
Einer der spannendsten Features von FreeCAD ist, dass man es in großem Umfang skripten oder erweitern kann, ohne dass es nötig ist etwas zu kompilieren oder den Quellcode zu modifizieren. Dazu wird die sehr einfache aber mächtige Programmiersprache [http://en.wikipedia.org/wiki/Python_(programming_language) Python] eingesetzt. Mit einfachen Python Skripten hat man vollen Zugriff auf fast alle Teile von FreeCAD. Zum Beispiel kann man:
* '''Create and modify geometry''': Is there a special object you need that's not present in the default FreeCAD installation? You can easily create a new object type, either from scratch or by adapting an existing type.
*'''Geometrien erzeugen und modifizieren''': Benötigst du eine besondere Art von Objekt das nicht im Standardumfang von FreeCAD enthalten ist? Man kann sehr einfach einen neuen Objekttyp zu FreeCAD hinzufügen, entweder durch Anpassung eines bereits vorhandenen Typs, oder durch komplette Neuentwicklung.
* '''Create custom tools and commands''': At the moment, FreeCAD already has extensive functionality, but there aren't many convenient tools and commands for the final user yet. But it is already easy to create your own sets of tools.
*'''Erstelle eigene Werkzeuge und Kommandos''': FreeCAD hat bereits viele Funktionen, aber es gibt noch nicht so viele bequem nutzbare Werkzeuge und Kommandos für den Benutzer. Aber es ist nicht schwer, eigene Werkzeuge zu entwickeln.
* '''Modify the interface''': The FreeCAD user interface is still very basic at this stage. But everything is there for you to extend it to your needs. You can, for example, create toolbars to put your own tools, create special panels for interacting with your tools, etc.
*'''Verändere die Benutzeroberfläche'''': Die Beutzeroberfläche von FreeCAD ist in vielerlei Hinsicht noch recht rudimentär, aber es sind alle Voraussetzungen dafür geschaffen, sie an bestimmte Anforderungen anzupassen. Man kann zum Beispiel eigene Werkzeugleisten für eigene Werkzeuge erstellen und vieles mehr.
*'''Modify the scene representation''': FreeCAD has separate processes for building up and computing the geometry and displaying that geometry on your screen. You have full access to the way the scene contents are displayed on screen, therefore you can modify that representation, interact with it, or add all kinds of custom behaviours and screen widgets, like information, draggers, anchors or temporary entities.
*'''Verändere die Anzeige der Szene''': FreeCAD hat spezielle Prozesse für den Aufbau und Berechnung der Geometrie, und für die Anzeige derselben. Man hat volle Kontrolle über die Art und Weise, wie Inhalte auf dem Bildschirm dargestellt werden und kann diese Darstellung verändern, mit ihr interagieren oder beliebiges Verhalten und Widgets hinzufügen wie Informationen, Verschiebegriffe, Anker oder temporäre Entitäten.
</div>


== FreeCAD anpassen ==
== FreeCAD anpassen ==
Line 101: Line 106:


'''Pivy''' - How to interact with FreeCAD's 3D scenes
'''Pivy''' - How to interact with FreeCAD's 3D scenes
* [http://pivy.coin3d.org/documentation/pycon Basic Pivy tutorial] : A very simple tutorial form the official Pivy site
* [http://pivy.coin3d.org/documentation/pycon Basic Pivy tutorial] : A very simple tutorial from the official Pivy site
* [http://www.google.com.br/url?sa=U&start=3&q=http://studierstube.icg.tu-graz.ac.at/doc/pdf/PivyStudierstubeTutorial.pdf&ei=XyC1Sc2wOeCKmQem_eHnBQ&usg=AFQjCNEYhb-0DcUc6OxFVijAe1epBb-4aA Introducing Pivy into studierstube] : A document that is not really a tutorial, but that illustrates well how Pivy works
* [http://www.google.com.br/url?sa=U&start=3&q=http://studierstube.icg.tu-graz.ac.at/doc/pdf/PivyStudierstubeTutorial.pdf&ei=XyC1Sc2wOeCKmQem_eHnBQ&usg=AFQjCNEYhb-0DcUc6OxFVijAe1epBb-4aA Introducing Pivy into studierstube] : A document that is not really a tutorial, but that illustrates well how Pivy works


Line 110: Line 115:
[[Category:Hubs/de]]
[[Category:Hubs/de]]
[[Category:Poweruser Documentation/de]]
[[Category:Poweruser Documentation/de]]


<languages/>

Revision as of 13:30, 4 August 2018

150
150

Diese Seite ist ein guter Startpunkt, um tief in FreeCAD einzusteigen. Hier kann man lernen, wie man FreeCAD für besondere Anforderungen anpasst.

Diese Seiten befinden sich im Aufbau. Falls du die Informationen, nach denen du suchst, nicht findest, oder aber irgendwo nützliche Informationen gefunden hast, die nicht verlinkt ist, hinterlasse doch bitte einen Kommentar auf the talk page oder füge das Material selbst hinzu.

Einer der spannendsten Features von FreeCAD ist, dass man es in großem Umfang skripten oder erweitern kann, ohne dass es nötig ist etwas zu kompilieren oder den Quellcode zu modifizieren. Dazu wird die sehr einfache aber mächtige Programmiersprache Python eingesetzt. Mit einfachen Python Skripten hat man vollen Zugriff auf fast alle Teile von FreeCAD. Zum Beispiel kann man:

  • Geometrien erzeugen und modifizieren: Benötigst du eine besondere Art von Objekt das nicht im Standardumfang von FreeCAD enthalten ist? Man kann sehr einfach einen neuen Objekttyp zu FreeCAD hinzufügen, entweder durch Anpassung eines bereits vorhandenen Typs, oder durch komplette Neuentwicklung.
  • Erstelle eigene Werkzeuge und Kommandos: FreeCAD hat bereits viele Funktionen, aber es gibt noch nicht so viele bequem nutzbare Werkzeuge und Kommandos für den Benutzer. Aber es ist nicht schwer, eigene Werkzeuge zu entwickeln.
  • Verändere die Benutzeroberfläche': Die Beutzeroberfläche von FreeCAD ist in vielerlei Hinsicht noch recht rudimentär, aber es sind alle Voraussetzungen dafür geschaffen, sie an bestimmte Anforderungen anzupassen. Man kann zum Beispiel eigene Werkzeugleisten für eigene Werkzeuge erstellen und vieles mehr.
  • Verändere die Anzeige der Szene: FreeCAD hat spezielle Prozesse für den Aufbau und Berechnung der Geometrie, und für die Anzeige derselben. Man hat volle Kontrolle über die Art und Weise, wie Inhalte auf dem Bildschirm dargestellt werden und kann diese Darstellung verändern, mit ihr interagieren oder beliebiges Verhalten und Widgets hinzufügen wie Informationen, Verschiebegriffe, Anker oder temporäre Entitäten.

FreeCAD anpassen

Scripting in FreeCAD

General

Modules

As the functionality of FreeCAD is separated in Modules which deal with special data types and applications. FreeCAD has built-in modules and Extension Modules (plug-ins). Once plugin modules are installed, they become availible to you as easily as the built-in modules. The modules described below are the default modules, includeed in every FreeCAD installation.

  • The Builtin modules are the principal FreeCAD modules. They contain tools for manipulating general FreeCAD configurations, documents and their contents.
  • Workbench creation shows you how to create your own workbench

Working with Meshes

Working with Parts

Accessing the Coin scenegraph

Controlling the Qt interface

Working with parametric objects

Examples

  • Code snippets : A collection of pieces of FreeCAD Python code, to serve as ingredients in your scripts...
  • Line drawing function: How to build a simple tool to draw lines
  • Dialog creation: How to construct dialogs with Qt designer, and use them in FreeCAD
  • Embedding FreeCAD: How to import FreeCAD as a Python module in other applications
  • The Draft Module adds basic 2d drawing functions to freecad. It is written entirely in Python, so it can be a good example if you want to write your own modules.
  • FreeCAD vector math library : A couple of handy functions to manipulate FreeCAD vectors. This library is also included in the Draft module.

API Functions

The complete API documentation of FreeCAD is located at http://www.freecadweb.org/api/ . It contains both C++ and Python APIs, and is not totally well formatted yet, which can be confusing when looking for python-only code. An easier to browse version can be found here. Note that it can be incomplete, since it is updated manually. For more accurate information, browse the modules directly from FreeCAD's Python console.

Advanced modification

Python tutorials

These are good generic tutorials, not specific to FreeCAD, that might interest you if you are totally new to python.

Python

PySide - How to create and manage FreeCAD's Qt UI interface from python

The following two references are PyQt specific (not PySide) but may offer some information of use:

Pivy - How to interact with FreeCAD's 3D scenes

Community projects

On the Community portal, you can find other FreeCAD-based projects run by the FreeCAD users community. If you are starting a new FreeCAD project, be sure to list it there! We also have a page with things you can do if you would like to Help FreeCAD.