Macros recipes/es

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

If you wrote a macro, and want to include it in the categories in this page, see macro documentation to learn about properly documenting the macro.

[[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
 * : Simple example animation Draft wires by use the Expressions for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected (This macro run with FreeCAD version 0.16)

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

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


 * : This macro is only used by programmers Test characters ASCII over 127.

[[File:Arch_MeshToShape.svg]] Conversion

 * : Convierte las mallas seleccionadas en piezas

[[File:Drawing-orthoviews.svg]] Drawing Workbench
The Drawing Workbench is considered obsolete since FreeCAD 0.17. Consider using the TechDraw Workbench instead.


 * : 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
 * : This macro exports multiple FEM result objects from a transient analysis to the VTK format and generates a PVU file which can be used to load the results directly into ParaView for post-processing.

[[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.
 * : Gives the total mass and the center of mass of multiple objects selected with the density chosen.
 * : Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)

[[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
equations.
 * : 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
 * : Tool utility : Tab > Wire > Curves And Surfaces

[[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.
 * : This macro helps managing cells inside FreeCAD Spreadsheet workbench.
 * : Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
 * : This macro save the data in a csv file with the formula or in a xml file.

[[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. It works also with the new Body and App::Part containers, as well as with STEP hierarchy.
 * : 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
 * : measures time it takes to recompute each object in a project
 * : 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
 * : This macro toggles the Drawstyle of the selected object (same Macro Toggle Drawstyle above optimized all language)
 * : Highlight common parts.
 * : Compute the difference between two shapes.
 * : displays an interactively slidable cross-section.
 * : prints the SceneGraph.
 * : 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
 * : This macro positioned your object perpendicularly to wire selected.
 * : Merges materials that have the same base name (with different numeral endings like 001, 002,...) into one.
 * : rebinds standard view commands from digit keys to Ctrl+digit, so that they don't spin the view by accident when entering numbers.
 * : finds user config files system.cfg and user.cfg, copies folder location to system clipboard, instructs user on renaming these files in order to reset FreeCAD settings, and opens folder with default file browser.
 * : Easily post screenshots to the FreeCAD forum.
 * : unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
 * : reset Part containers to global origin while maintaining objects absolute position.
 * : re-align object(s) with FreeCAD coordinate system according reference face/edge
 * : manage visibility of document objects by type or individually

[[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 created by FreeCAD users

 * [[Image:2364.png|24px]] By microelly2 : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
 * [[Image:Text-x-python.png|24px]] By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
 * [[Image:Text-x-python.png|24px]] By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
 * [[Image:681.jpg|24px]] By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
 * [[Image:Text-x-python.png|24px]] By oddtopus: flamingo (workbench for metal structures).
 * [[Image:Text-x-python.png|24px]] By dprojects: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
 * [[Image:Text-x-python.png|24px]] By Siardeni: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
 * [[Image:Text-x-python.png|24px]] By realthunder: Assembly3 workbench, and more.

How to use
See how to install macros for a full description, and customize toolbars to add the macros to a toolbar for easy access.

Installing many macros is equivalent to installing a new workbench; see how to install additional workbenches for this information.

Automatic installation
Starting with FreeCAD 0.17, use the Addon Manager in to install a macro that has been included in the FreeCAD-macros repository.

Manual installation
If the Addon Manager is not used, the macro can be installed manually.
 * Copy the Python code from the corresponding macro page.
 * Open the macros menu, press , and give it a name.
 * Paste the Python code that you copied.
 * Press the button, and restart FreeCAD.
 * To use it, open again the macros menu, select your new macro, and press.

Add a macro to a custom toolbar

 * Go to.
 * In the tab, add a new macro name, and optionally define an icon and a keyboard shortcut.
 * In the tab, create a new toolbar, and add your macro, taking it from the  category.