Hub degli utenti esperti
Questo è il posto per esplorare più a fondo FreeCAD. Qui si può imparare a personalizzazione FreeCAD secondo le proprie esigenze.
Queste pagine sono in fase di sviluppo. Se non si trovano le informazioni che si stanno cercando, o se da qualche altra parte si trovano informazioni utili che non sono linkate, si prega di lasciare un commento nella pagina di discussione, e perché non aggiungere personalmente altro contenuto a queste pagine!
Una delle caratteristiche migliori di FreeCAD consiste nella possibilità di creare degli script e di estenderlo notevolmente senza dover compilare nulla o intervenire sul codice sorgente. Tutta la parte degli script è realizzata in Python, un linguaggio di programmazione molto potente, ma semplice. Con semplici script Python, si ha accesso totale a quasi tutte le parti di FreeCAD. Ad esempio, è possibile:
- Creare e modificare elementi di geometria: Serve un particolare oggetto (forma o linea speciale) che non è presente nell'installazione di default FreeCAD? Si può facilmente creare un nuovo tipo di oggetto, sia partendo da zero che adattando un tipo di oggetto esistente.
- Creare strumenti e comandi personalizzati: Al momento, FreeCAD offre già ampie funzionalità, ma mancano ancora diversi pratici strumenti e comandi utili all'utente finale, ma è facile creare dei propri set di strumenti.
- Modificare l'interfaccia: In questo momento l'interfaccia utente di FreeCAD è ancora molto semplice, ma è disponibile tutto quello che serve per adattarla alle proprie esigenze. È possibile, ad esempio, creare barre degli strumenti in cui inserire i propri strumenti, creare speciali pannelli per interagire con gli strumenti, ecc.
- Modificare la visualizzazione della scena: Per costruire e calcolare la geometria, FreeCAD usa processi diversi da quelli che usa per visualizzare la geometria sullo schermo. Si ha accesso totale al modo in cui i contenuti della scena vengono visualizzati sullo schermo, quindi è possibile modificare tale rappresentazione, interagire con essa, o aggiungere tutti i tipi di comportamenti personalizzati e agli accessori dello schermo, quali, ad esempio, informazioni, opzioni di trascinamento, ancoraggio o entità temporanee.
Personalizzare FreeCAD
- Personalizzare l'interfaccia: Cominciando dall'inizio: le barre degli strumenti e i tasti di scelta rapida
- Operare con le Macro: Registrare semplicemente le operazioni che vengono ripetute spesso o creare il codice Python
Script in FreeCAD
Generale
- Introduzione a Python - Vedere anche altri tutorial Python in fondo a questa pagina
- Guida agli script in FreeCAD - Uno sguardo generale agli script in Python FreeCAD
- Script base in FreeCAD: Gli script di base...
- Comandi dell'interfaccia grafica : Aggiungere comandi personalizzati alla GUI
- Unità: utilizzare unità miste in FreeCAD
Lavorare con Mesh
- Script per Mesh: Come interagire con il Modulo Mesh
Lavorare con Parti
- Il Modulo Parte: Come sono utilizzati gli strumenti e la struttura di Open CASCADE Technology in FreeCAD
- Script di dati topologici: Come interagire con il Modulo Parte
- PythonOCC - PythonOCC: Come utilizzare tutta la potenza di Open CASCADE
- Da Mesh a Parte: Conversione tra tipi di oggetti
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
- PyQt: 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 description can be found here. Note that it can be incomplete, since we still didn't find a way to include it automatically on this wiki. For more accurate information, browse the modules directly from FreeCAD.
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 Unix
- 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
PyQt - How to create and manage FreeCAD's Qt UI interface from python
- Basic PyQt tutorial : A simple and short linux-based tutorial that will explain how to work with PyQt and Qt Designer
- First programs in PyQt4 : A platform-agnostic tutorial showing the interns of python + qt
- 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 form the official Pivy site
- Introducing Pivy into studierstube : A document that is not really a tutorial, but that illustrates well how Pivy works
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.