Macros recipes

From FreeCAD Documentation
Jump to: navigation, search
This page is a translated version of the page Macros recipes and the translation is 16% complete.

Outdated translations are marked like this.
Other languages:
čeština • ‎Deutsch • ‎English • ‎español • ‎français • ‎hrvatski • ‎italiano • ‎română • ‎русский • ‎svenska

Base ExampleCommandModel.png Tutorial

Tema
Macros
Nivel
Beginner
Tiempo para completar
Autor
Versión de FreeCAD
Archivo(s) de ejemplo(s)


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.

Macros

Part CheckGeometry.svg 3D View operations

  • Text-x-python.png Macro Rotate View Esta macro gira la vista actual 90º hacia la izquierda. Solo funciona si estas en la vista en planta.
  • Text-x-python.png Macro View Rotation Proporciona una interfaz gráfica de usuario GUI que permite rotar la vista una cantidad determinada en las tres direcciones.
  • Text-x-python.png Macro Texture Objects Esta macro permite poner temporalmente una imagen de textura en los objetos seleccionados.

Draft FlipDimension.svg Animation

Applications-python.svg Code and Scripting

  • Text-x-python.png Macro MessageBox: muestra como dar información al usuario través de la interfaz gráfica de usuario GUI.

Arch MeshToShape.svg Conversion

Drawing-orthoviews.svg Drawing Workbench

The Drawing Workbench is considered obsolete since FreeCAD 0.17. Consider using the TechDraw Workbench instead.

  • Text-x-python.png Macro Automatic drawing: 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
  • Text-x-python.png Macro CartoucheFC: 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.

Draft BSpline.svg Dxf 2D Draft

Fem ResultDisplacement.svg Fem

  • Text-x-python.png Macro GMSH: Create FEM Meshes by GMSH Mesh Generator

Part Measure Clear All.svg Info and measures

  • FCInfo.png Macro FCInfo: 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
  • FCInfo.png Macro FCInfo Alternate Linux: same as above, but for Linux
  • Macro FCInfoGlass.png Macro FCInfoGlass: Gives a series of information about the selected shape and displayed in screen 3D
  • FCInfoToMouse.png Macro FCInfoToMouse: Provide informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen
  • Text-x-python.png Macro Delta xyz: Gives the Delta values and the distance between 2 points
  • Text-x-python.png Macro ObjectInfo: User-friendly "Info" module created by a FreeCAD user
  • Macro Dump Objects.png Macro Dump Objects: This macro generates a listing of all objects in the current document - the list can be in a window or on the Report view.
  • Macro MeasureCircle.png Macro MeasureCircle: Compute the radius of a circle by 3 points or a circular edge.
  • Macro CenterOfMass.png Macro CenterOfMass: Gives the total mass and the center of mass of multiple objects selected with the density chosen.
  • Text-x-python.png Macro SimpleProperties: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...)

Draft VisGroup.svg Libraries

Bound-expression.svg Mathematical functions

equations.

IFC.svg Multifunctional

  • WF wf.png Macro WorkFeatures: 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.

Workbench Image.svg Object creation

  • Macro makeCube.png Macro Make Cube: Crea un cubo a partir de 4 puntos
  • Text-x-python.png Macro Solid Sweep: 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.

Workbench PartDesign.svg Object transformation

  • Text-x-python.png Macro ArrayCopy: Copia el objeto seleccionado varias veces, en una matriz
  • Text-x-python.png Macro FlattenWire: Aplana los contornos que no son planos a la mediana de sus coordenadas Z
  • Text-x-python.png Macro JointWire: Permite encontrar y unir todos los contornos no conectados al contorno no conectado más próximo utilizando una línea
  • Text-x-python.png Macro Remove parametric history: Elimina toda la paramétrica asociada de un objeto, dejándolo como una forma "muda"
  • Text-x-python.png Macro SuperWire: 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
  • Text-x-python.png Macro HealArcs: 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

View.svg Printer 3D

Preferences-raytracing.svg Raytracing

Spreadsheet.svg Spreadsheet Workbench

  • Aliasmanager icon.png Macro Alias Manager: helps managing aliases inside FreeCAD Spreadsheet workbench. It is able to create, delete, move aliases and create a 'part family' group of files.
  • Text-x-python.png Macro Spreadsheet Tools: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
  • Macro FCTreeView.png Macro FCTreeView: 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.
  • Macro FCSpreadsheet Extract.png Macro FCSpreadSheet Extract: This macro save the data in a csv file with the formula or in a xml file.

Arch Survey.svg Utility

Bulb.svg Wizards

  • Text-x-python.png Macro Corner shapes wizard: 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

  • 2364.png By microelly2 : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
  • Text-x-python.png By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
  • Text-x-python.png By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
  • 681.jpg By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
  • Text-x-python.png By oddtopus: flamingo (workbench for metal structures).
  • Text-x-python.png By dprojects: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
  • Text-x-python.png By Siardeni: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
  • Text-x-python.png 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 Tools → Addon manager 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 Macro → Macros, press Create, and give it a name.
  • Paste the Python code that you copied.
  • Press the Save button, and restart FreeCAD.
  • To use it, open again the macros menu, select your new macro, and press Execute.

Add a macro to a custom toolbar

  • Go to Tools → Customize.
  • In the Macros tab, add a new macro name, and optionally 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.