Centrum Power użytkowników
To jest miejsce, które warto odwiedzić, jeśli chcesz pogłębić swoją wiedzę na temat FreeCAD. Tutaj możesz dowiedzieć się jak dostosować FreeCAD do swoich potrzeb.
Strony te są we wczesnej fazie rozwoju. Jeśli nie możesz znaleźć poszukiwanych informacji lub znalazłeś przydatne informacje w miejscu, które nie zostało połączone z naszą stroną, to zostaw komentarz na forum, lub, dlaczego nie? Dodaj tutaj więcej treści samodzielnie!
Jedną z najmilszych cech programu FreeCAD jest to, że możesz tworzyć skrypty i rozszerzać go bardzo mocno bez potrzeby kompilacji czegokolwiek lub kontaktu z kodem źródłowym. Cała część związana ze skryptami jest wykonywana w Środowisku Python, bardzo potężnym ale prostym języku programowania. Dzięki prostym skryptom Pythona, masz całkowity dostęp do dowolnej części FreeCAD. Na przykład, możesz:
- Tworzenie własnych narzędzi i poleceń: W tej chwili FreeCAD ma już rozbudowaną funkcjonalność, ale nie ma jeszcze wielu wygodnych narzędzi i poleceń dla użytkownika końcowego. Ale już teraz można łatwo tworzyć własne zestawy narzędzi.
- Modyfikacja interfejsu: Interfejs użytkownika FreeCAD jest wciąż bardzo prosty na tym etapie. Ale wszystko jest po to, abyś mógł go rozszerzyć do swoich potrzeb. Możesz, na przykład, tworzyć paski narzędzi do umieszczania własnych narzędzi, tworzyć specjalne panele do interakcji z narzędziami, itp.
- Modyfikuj reprezentację sceny: FreeCAD posiada oddzielne procesy do budowania i obliczania geometrii oraz wyświetlania jej na ekranie. Masz pełny dostęp do sposobu, w jaki zawartość sceny jest wyświetlana na ekranie, dlatego możesz modyfikować tę reprezentację, wchodzić z nią w interakcję lub dodawać wszelkiego rodzaju niestandardowe zachowania i widgety ekranu, takie jak informacje, dragery, kotwice lub tymczasowe jednostki.
Dostosowanie FreeCAD
- Dostosowywanie interfejsu: zaczynając od początku: Paski narzędzi i skróty,
- Praca z makrami: łatwe nagrywanie często powtarzanych zadań lub kodu Pythona,
- Receptury makr,
- Dostosuj paski narzędzi,
- Instalowanie większej liczby Środowisk pracy,
- Moduł ładujący wtyczki,
- Addons installer.FCMacro.
Tworzenie skryptów dla FreeCAD
Ogólne
- Wprowadzenie do Python - Zobacz także inne samouczki dotyczące języka Python na dole tej strony,
- FreeCAD poradnik tworzenia skryptów - Ogólne spojrzenie na pisanie skryptów Pythona w programie FreeCAD,
- FreeCAD podstawy tworzenia skryptów: No cóż, podstawy...
- Polecenia Gui: Dodawanie niestandardowych poleceń do GUI,
- Używanie mieszanych jednostek we FreeCAD.
Modules
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
- Mesh Scripting: How to interact with the Mesh Module
Working with Parts
- The Part Module: How Open CASCADE Technology tools and structure is used in FreeCAD
- Topological data scripting: How to interact with the Part Module
- PythonOCC: How to unleash the whole Open CASCADE power
- Mesh to Part: Converting between object types
Accessing the Coin scenegraph
- The Coin/Inventor scenegraph: How the FreeCAD scene representation works
- Pivy: How to access and modify the scenegraph
Controlling the Qt interface
- PySide: How to access the interface, and modify its contents
- Using the FreeCAD GUI in another Qt application with PyQt
Working with parametric objects
- Scripted objects: How to make 100% Python-scripted objects in FreeCAD
- Drawing Module: Automating the 3D-to-2D process
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.
Related: Exposing C++ to Python
Advanced modification
- Start up and Configuration: Startup and command line options
- Install on Windows: Using the windows installer
- Compiling FreeCAD on Windows and Compiling FreeCAD on Linux
- Branding: Simple modifications you can do to the source code to change some aspects of FreeCAD
- Extra python modules : Extend the FreeCAD python interpreter with these powerful modules!
Python tutorials
These are good generic tutorials, not specific to FreeCAD, that might interest you if you are totally new to python.
Python
- Official python tutorial - A very complete tutorial for discovering python
- Non-programmer tutorial for python - an excellent wikibook
- Python for newbies - one big tutorial covering all the basics
PySide - How to create and manage FreeCAD's Qt UI interface from python
- PySide tutorial : A platform-agnostic tutorial showing the usage of PySide with examples
- PySide/PyQt tutorial : A easy to read tutorial that covers PySide and PyQt with examples
- PySide documentation : from the Qt Project (the people who wrote it all)
- Using QtCreator in PySide : also from the Qt Project
- PySide reference : endless detail on the minutiae of PySide and Qt, a reliable reference source
- PySide code snippets : a searchable database of PySide code snippets
The following two references are PyQt specific (not PySide) but may offer some information of use:
- Basic PyQt tutorial : A simple and short linux-based tutorial that will explain how to work with PyQt and Qt Designer
- Programming Qt applications in python : A more in-depth tutorial covering all the process of working with qt and python.
Pivy - How to interact with FreeCAD's 3D scenes
- Basic Pivy tutorial : A very simple tutorial from the official Pivy site
- Introducing Pivy into studierstube : A document that is not really a tutorial, but that illustrates well how Pivy works
Projekty społeczności
Na Portalu Społeczności możesz znaleźć inne projekty oparte na FreeCAD prowadzone przez społeczność użytkowników FreeCAD. Jeśli rozpoczynasz nowy projekt FreeCAD, upewnij się, że możesz go tam wymienić! Mamy także stronę z rzeczami, które możesz zrobić, jeśli chciałbyś Pomóc FreeCAD.
- Jak zacząć
- Instalacja: Pobieranie programu, Windows, Linux, Mac, Dodatkowych komponentów, Docker, AppImage, Ubuntu Snap
- Podstawy: Informacje na temat FreeCAD, Interfejs użytkownika, Profil nawigacji myszką, Metody wyboru, Nazwa obiektu, Edytor ustawień, Środowiska pracy, Struktura dokumentu, Właściwości, Pomóż w rozwoju FreeCAD, Dotacje
- Pomoc: Poradniki, Wideo poradniki
- Środowiska pracy: Strona Startowa, Złożenie, BIM, CAM, Rysunek Roboczy, MES, Inspekcja, Siatka, OpenSCAD, Część, Projekt Części, Punkty, Inżynieria Wsteczna, Robot, Szkicownik, Arkusz Kalkulacyjny, Powierzchnia 3D, Rysunek Techniczny, Test Framework