Power users hub/es: Difference between revisions
Renatorivo (talk | contribs) (Created page with "* Personalización de la interfaz: Empezando por el principio: Barras de herramientas y atajos de teclado * Trabajando con Macros:...") |
Renatorivo (talk | contribs) (Created page with "== Archivos de guión en FreeCAD ==") |
||
Line 17: | Line 17: | ||
* [[Macros/es|Trabajando con Macros]]: Sencillamente graba las tareas repetitivas o crea código en Python |
* [[Macros/es|Trabajando con Macros]]: Sencillamente graba las tareas repetitivas o crea código en Python |
||
== |
== Archivos de guión en FreeCAD == |
||
===General=== |
===General=== |
Revision as of 21:46, 5 December 2013
Este es el lugar al que deberías venir si quieres profundizar un poco en FreeCAD. Aquí puedes aprender sobre personalizar FreeCAD según tus necesidades.
Estas páginas están en una etapa inicial de desarrollo. Si no logras encontrar la información que buscas, o si has encontrado información útil en algún otro sitio que no hemos vinculado, entonces por favor deja un comentario en la página de discusión, o, por qué no? Añade algún contenido aquí tu mismo!
Una de las mejores características de FreeCAD es que escribir archivos de guión y extenderlo considerablemente sin la necesidad de compilar nada o tocar el código fuente. Toda la parte de los archivos de guión está realizada en Python, un lenguaje de programación muy potente pero simple. Con simples archivos de guión en Python, tienes acceso total a casi cualquier parte de FreeCAD. Por ejemplo, puedes:
- Crear y modificar geometría: Hay un tipo de objeto que necesitas pero no está incluido en la instalación por defecto de FreeCAD? Puedes crear de forma sencilla un nuevo tipo de objeto, ya sea desde cero o adaptando un tipo de objeto existente.
- Crear herramientas personalizadas y comandos: De momento, FreeCAD dispone de bastantes funcionalidades, pero aún no están disponibles muchas herramientas y comandos convenientes para el usuario final. Pero es bastante sencillo crear tus propios conjuntos de herramientas.
- Modificar la interfaz: La interfaz de usuario de FreeCAD aún es bastante básica. Pero todo está disponible para que puedas extenderla en función de tus necesidades. Puedes, por ejemplo, crear barras de herramientas para poner tus propias herramientas, crear paneles especiales para interactuar con tus herramientas, etc.
- Modificar la representación de la escena: FreeCAD tiene procesos separados para la construcción y el cálculo de la geometría y mostrarla en tu pantalla. Tienes completo acceso al modo en el que el contenido de la escena se muestra en pantalla, por tanto puedes modificar dicha representación, interactuar con ella, o añadir todo tipo de comportamiento personalizado y complementos, como información, opciones de arrastre y anclado o entidades temporales.
Personalizando FreeCAD
- Personalización de la interfaz: Empezando por el principio: Barras de herramientas y atajos de teclado
- Trabajando con Macros: Sencillamente graba las tareas repetitivas o crea código en Python
Archivos de guión en FreeCAD
General
- Introduction to python - See also other Python tutorials at the bottom of this page
- FreeCAD scripting tutorial - A general look at python scripting in FreeCAD
- FreeCAD Scripting Basics: Well, the basics...
- Gui Command : Adding custom commands to the GUI
- Using mixed Units in FreeCAD
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
- 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.