Macros recipes/es

Esta página contiene macros para añadir funcionalidad a tu instalación de FreeCAD

[[File:Part_CheckGeometry.svg]] 3D View operations

 * Esta macro gira la vista actual 90º hacia la izquierda. Solo funciona si estas en la vista en planta.
 * Proporciona una interfaz gráfica de usuario GUI que permite rotar la vista una cantidad determinada en las tres direcciones.
 * Esta macro permite poner temporalmente una imagen de textura en los objetos seleccionados.

[[File:Draft_FlipDimension.svg]] Animation

 * : Rotation rod and piston
 * : Simulation of one spring
 * : Open and close hinge
 * : Assembly animate
 * : Animate angle constrain in sketcher
 * : Simulation of movements of a 3D printer

[[File:Applications-python.svg]] Code and Scripting

 * : muestra como dar información al usuario través de la interfaz gráfica de usuario GUI.

[[File:Arch_MeshToShape.svg]] Conversion

 * : Convierte las mallas seleccionadas en piezas

[[File:Drawing-orthoviews.svg]] Drawing Workbench

 * : Permite al usuario obtener las vistas de su objeto en un dibujo con 4 posiciones diferentes (alzado, planta, isométrica, perfil derecho). Necesita algunos cambios para ser perfectamente efectiva
 * : Esta macro de GUI para llenar simplemente todos los campos del cartucho de la hoja de trabajo de implementación de plan FreeCAD, el formato de la fecha y el símbolo del modo de proyección se adaptan a la región de la UE o Estados Unidos seleccionado.

[[File:Draft_BSpline.svg]] Dxf 2D Draft

 * : Crea una rectelipse paramétrica
 * : se crea un círculo de 3 puntos seleccionados, los puntos pueden ser objetos (en este ejemplo reúne los dos ejemplos siguientes, todos los parámetros simplemente acordar una ventana gráfica).
 * : se crea un círculo de 3 puntos seleccionados 2D ortogonal.
 * : se crea un círculo de 3 puntos seleccionados en el espacio 3D.

[[File:Fem_ResultDisplacement.svg]] Fem

 * : Create FEM Meshes by GMSH Mesh Generator

[[File:Part_Measure_Clear_All.svg]] Info and measures

 * : Gives a series of information about the selected shape and can display a conversion of length, inclination (degrees, radian, grade) shape, surface, volume and the weight of the form in the density selected in various international and Anglo-Saxon units
 * : same as above, but for Linux
 * : Gives a series of information about the selected shape and displayed in screen 3D
 * : Provide informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen
 * : Gives the Delta values and the distance between 2 points
 * : User-friendly "Info" module created by a FreeCAD user
 * : This macro generates a listing of all objects in the current document - the list can be in a window or on the Report view.
 * : Compute the radius of a circle by 3 points or a circular edge.

[[File:Draft_VisGroup.svg]] Libraries

 * : This macro creates a screw with or without thread, according to ISO standards (screw_maker1_6.py.zip with Pyside support). (Screw Maker 2.0 - new version!)
 * : The aim of BOLTS is to build a free and open-source standard parts library for CAD applications.
 * : Starts the Parts library browser

[[File:Bound-expression.svg]] Mathematical functions

 * : Draw a function described by parametric equations x(t), y(t) and z(t).
 * : draws a function described by an equation z=F(x)
 * : Based on the above macro, but for parametric and optionally polar equations.

[[File:IFC.svg]] Multifunctional

 * : Tool utility to create plans of the axes, planes from 3 points, axes on a form, information on the coordinates of the shape and many other useful features to facilitate the creation of your project. This utility is up next in the combo view.

[[File:Workbench_Image.svg]] Object creation

 * : Crea un cubo a partir de 4 puntos
 * : crea u sólido barriendo un perfil 2D a lo largo de una trayectoria previamente seleccionada en la vista 3D. Los elementos 2D pueden crearse con las herramientas estándar del entorno gráfico de usuario GUI de FreeCAD.

[[File:Workbench_PartDesign.svg]] Object transformation

 * : Copia el objeto seleccionado varias veces, en una matriz
 * : Aplana los contornos que no son planos a la mediana de sus coordenadas Z
 * : Permite encontrar y unir todos los contornos no conectados al contorno no conectado más próximo utilizando una línea
 * : Elimina toda la paramétrica asociada de un objeto, dejándolo como una forma "muda"
 * : Fuerza la creación de una polilínea a partir de líneas y arcos que nmo necesariamente se toquen entre si. Utiliza esto si la operación de polilínea habitual falla
 * : Sometimes arcs are transformed into BSplines, for example when scale operations have been applied to them. This macro recreates valid arcs from them. Useful before exporting to dxf

[[File:View.svg]] Printer 3D

 * : Exports current design to slicer software or CAM software.

[[File:Preferences-raytracing.svg]] Raytracing

 * : Export from FreeCAD to Kerkythea

[[File:Spreadsheet.svg]] Spreadsheet Workbench

 * : helps managing aliases inside FreeCAD Spreadsheet workbench. It is able to create, delete, move aliases and create a 'part family' group of files.

[[File:Arch_Survey.svg]] Utility

 * : This macro red trace (editable) the center face (mass) with 1 point and print the coordinates
 * : This macro covers the following constraints: - Concentric constraint among non cylindrical parts; - Constraint on center Faces and/or Edges.
 * : This macro makes Cutouts for Enclosures in a very handy way
 * : Add the macros found in the macros folder to the Macros menu of FreeCAD
 * : Forces manual recompute of model
 * : Shake a sketch in order to discover its unconstrained parts.
 * : Replaces a part (simple copy) in an "Assembly" with another Part (simple copy).
 * : This macro toggles the Drawstyle of the selected object
 * : Highlight common parts.
 * : Compute the difference between two shapes.
 * : displays an interactively slidable cross-section.
 * : This macro red trace (editable) around the BoundingBox with 6 rectangles
 * : This macro help you to create an Arch Axis System along a line with a set of parameters.

[[File:Bulb.svg]] Wizards

 * : Muestra un letrero de diálogo preguntando por las dimensiones de tu pieza de la esquina, entonces crea el objeto en el documento y una hoja de dibujo con las vistas planta, alzado y vistas laterales de la pieza

Std_FreeCADWebsite.png Other interesting macros create by FreeCAD users and deposit in extra wiki.

 * [[Image:2364.png|24px]] By microelly2 : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, ..... other
 * [[Image:Text-x-python.png|24px]] By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, ...
 * [[Image:Text-x-python.png|24px]] By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, ....
 * 681.jpg By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, .... other
 * [[Image:Text-x-python.png|24px]] By oddtopus: flamingo (workbench for metal structures)

How to use?
The above macros can easily be plugged on any FreeCAD installation
 * Copy the macro python code from the corresponding macro page
 * In FreeCAD, Macro->Macros->Create new, and give it a name
 * Paste the python code you copied
 * Hit the Save button, and restart FreeCAD
 * Open the Macro manager, select your new macro and click "execute"
 * Tutorial How to install macros

Additionally, you can also add your new macro to a custom toolbar
 * In FreeCAD, go to Tools -> Customize
 * In the Macros tab, add a new macro, and, if you like, define an icon and a keyboard shortcut
 * In the Toolbars tab, create a new toolbar, and add your macro, taking it from the "Macros" category.
 * Tutorial Customize Toolbars

Adding new macros to this repository

 * Create a new page, beginning its name with "Macro", for example "Macro_My_Excellent_Macro", this can be done simply by editing this page, and adding a new link to your macro, like this:


 * example :


 * Text-x-python : icon by default (replace with your name icon with the exact same name as your macro page if there is. The format always .png only)
 * Macro My Excellent Macro : macro name
 * Macro My Excellent Macro title : macro name or title

A new page (red link) will be created.
 * In that page, paste the following text:

(With the default icon)

(With the icon custom)

(Another language with the default icon (example "/fr" "/de" "/it"....))

(Another language with the icon custom (example "/fr" "/de" "/it"....))

Note that the name of the icon must have the same name as the name of the macro.
 * You can also Upload a custom format icon.png
 * example: " Macro_My_Excellent_Macro " without extension (the extension is given by the system), and, replace " Icon=Text-x-python " by " Icon=Macro_My_Excellent_Macro "
 * Text-x-python [[Image:Text-x-python.png|32px]] is the default icon of the page dedicated to the Macro.


 * Paste your macro, and use the Code template to avoid adding spaces into your script. This will display the macro in a monospace font inside a light grey box like the example above.
 * If you like, upload a .png icon with the exact same name as your macro page (ex. Macro_My_Excellent_Macro.png)
 * Add an image: an image is useful to show what the macro does. Optionally you can create an animated gif that represents the object in context. The gif image should have a maximum size of 500x500px as the wiki does not resize animated gifs; if the gif is any bigger the animation won't work.
 * Optionally you can add some more info on how to use your macro, tips, limitations and workaround.
 * It is also interesting to include version information in your macro. This macro allows you to locate in time compared to the evolution of FreeCAD, do "Menu > Help > About FreeCAD and click to Copy to clipboard" and paste it your macro

Ex:

It is also advisable to create a macro in your header, this header can be used by the Plugin Loader program to install the macro and check versions. Also available addons_installer.FCMacro

Ex:


 * Add it to the above categories, create a new category if needed.

Tutorials

 * How to install macros
 * Customize Toolbars
 * How to install additional workbenches