Centrum pokročilého uživatele

From FreeCAD Documentation
Revision as of 10:08, 13 March 2016 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
150
150

Toto je místo kam jdete, pokud máte zájem o hlubší nahlédnutí do FreeCADu. Zde se můžete dozvědět více o přizpůsobení FreeCADu pro Vaše potřeby.

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 forum, or, why not? Add some more content here yourself!

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

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

Přizpůsobování FreeCADu

Skriptování ve FreeCADu

Obecně

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

Práce se Sítěmi

Práce s Díly

Přístup k zobrazovači Coin

Controlling the Qt interface

Práce s parametrickými objekty

Příklady

  • Ukázky kódu : Sbírka kousků Pythonovských skriptů ve FreeCADu, které mohou sloužít jako části Vašich skriptů...
  • Funkce kreslení přímky: Jak vytvořit jednoduchý nástroj pro kreslení přímek
  • Vytváření dialogového okna: Jak vytvořit dialogové okno pomocí designeru Qt a použít je ve FreeCADu
  • Vkládání FreeCADu: Jak importovat FreeCAD jako Pythonovský modul do jiných aplikací
  • Modul Kreslení přidává základní 2D kreslicí funkce do FreeCADu. Je plně napsán v Pythonu, takže to může být dobrý příklad, když chcete napsat Vaše vlastní moduly
  • Knihovna vektorové matematiky FreeCADu : Pár šikovných funkcí pro práci s vektory ve FreeCADu. Tato knihovna je také včleněna do modulu Kreslení.

Funkce API

Kompletní popis API lze nalézt zde. Připomínám, že může být nekompletní, protože jsme zatím nenašli způsob jak je automaticky začlenit do této wiki. Pro přesnější informace se podívejte na moduly přímo z FreeCADu.

Pokročilé úpravy

Výukový program Pythonu

Jsou to dobré obecné výukové programy, které nejsou specifické pro FreeCAD, mohou Vás zajímat jste-li v Pythonu úplný nováček.

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 - Jak nakládat se 3D zobrazením ve FreeCADu

Komunitní projekty

Na komunitním portalu najdete další projekty založené na FreeCADu vytvořené členy komunity. Když začnete nový projekt ve FreeCADu, určitě ho přidejte sem! Máme také stránku kde najdete věci, které můžete dělat pokud byste měli zájem pomoci FreeCADu.