Makro návody
Macros |
Tato stránka obsahuje makra pro rozšíření funkcionality Vaší instalace FreeCADu.
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.
Makra
Operace s 3D pohledy
- Template:MacroLink/cs toto makro otáčí aktuální pohled o 90° doleva. Funguje pouze u pohledu shora.
- Template:MacroLink/cs poskytuje GUI pro povolení otáčení pohledu o přesnou velikost ve všech třech směrech.
- Template:MacroLink/cs toto makro umožňuje vložit dočasně texturu do vybraných objektů.
- Template:MacroLink/cs toto malé makro mění šipku kurzoru myši na jemný křížek.
Animation
- Macro Animator: Animate your model by animating its properties with this feature python object.
- Macro crank simul: Rotation rod and piston.
- Macro Spring: Simulation of one spring.
- Macro hinge: Open and close hinge.
- Macro Assembly: Assembly animate.
- Macro Animated Constrain: Animate angle constrain in sketcher.
- Macro Assemblage Imprimante 3D: Simulation of movements of a 3D printer.
- Constraint Draft: 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).
Code and Scripting
- Template:MacroLink/cs: ukazuje jak poskytnout uživateli informace pomocí GUI.
- Macro ZTest Over 128: This macro is only used by programmers Test characters ASCII over 127.
Conversion
- Template:MacroLink/cs: konvertuje vybrané sítě do dílů
- Template:MacroLink/cs: Konvertuje vybraný povrch do jednoho náčrtu bez vazeb.
Drawing Workbench
The Drawing Workbench is considered obsolete since FreeCAD 0.17. Consider using the TechDraw Workbench instead.
- Template:MacroLink/cs: umožňuje uživateli získat pohled na objekt ve výkresu ve 4 různých pozicích (zepředu, shora, iso a zprava). Aby bylo dokonale efektivní, potřebuje ještě pár úprav.
Dxf 2D Draft
- Template:MacroLink/cs: vytváří parametrický elipsový obdélník
- Template:MacroLink/cs: vytváří kružnici podle 3 vybraných bodů, body mohou být objekty (tento příklad spojuje dva následující příklady, všechny parametry jsou uspořádány v grafickém okně).
- Template:MacroLink/cs: vytváří kružnici podle 3 vybraných bodů v kolmých 2D
- Template:MacroLink/cs: vytváří kružnici podle 3 vybraných bodů ve 3D prostoru
- Template:MacroLink/cs: Pokud je to možné, konvertuje vybrané hrany do kružnicového oblouku. Užitečné pro obnovení rozlámaného oblouku.
Fem
- Macro GMSH: Create FEM Meshes by GMSH Mesh Generator
- Macro export transient FEM results: 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.
Info and measures
- Template:MacroLink/cs: dodá řadu informací o vybraném tvaru a může zobrazovat konverzi délky, sklonu (stupně, radiány) tvaru, povrch, objem a váhu tvaru v mezinárodních i anglosaských jednotkách.
- Template:MacroLink/cs: dodá hodnotu Delta (úhel) a vzdálenost mezi 2 body.
Libraries
- Template:MacroLink/cs: toto makro vytváří šroub s nebo bez závitu podle ISO standardů.
- Template:MacroLink/cs: cílem BOLTSu je vybudovat bezplatnou open-source knihovnu standardních dílů pro CAD aplikace.
Mathematical functions
- Macro Parametric Curve FP: Feature python update of Macro 3D Parametric Curve.
- Macro 3D Parametric Curve: Draw a function described by parametric equations x(t), y(t) and z(t).
- Macro Draw 2D Function: draws a function described by an equation z=F(x)
- Macro Draw Parametric 2D Function: Based on the above macro, but for parametric and optionally polar
- Macro WorkFeatures: Tool utility : Tab > Wire > Curves And Surfaces Launch Curves and Surfaces Menu ...
equations.
Multifunctional
- 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.
Vytvoření objektu
- Template:MacroLink/cs : vytváří kostku ze 4 bodů
- Template:MacroLink/cs: vytváří těleso tažením 2D profilu po trajektorii předem vybrané ve 3D pohledu. 2D prvek může být vytvořen standardními nástroji GUI FreeCADu.
Transformace objektu
- Template:MacroLink/cs: několikrát zkopíruje objekt do mřížkového pole
- Template:MacroLink/cs: srovná nakreslené dráty (lomené čáry), které nejsou v jedné rovině, do jejich střední souřadnice Z
- Template:MacroLink/cs: umožňuje najít a spojit všechny nespojené hrany do uzavřeného nespojeného drátu pomocí přímek
- Template:MacroLink/cs: odstraní z objektu všechny parametrické asociativity a ponechá objekt jako samostatný tvar
- Template:MacroLink/cs: dodělá vytvoření drátu z přímek a oblouků, které se nemusejí vzájemně dotýkat. Použijte tehdy, pokud normální funkce selže.
- Template:MacroLink/cs: Oblouky jsou někdy transformovány do B-křivek, například, když se změní měřítko. Toto makro z toho znovuvytvoří platný oblouk. Je to užitečné před exportem do dxf.
PartDesign Workbench
- Macro PDWrapper: Encapsulates non-PartDesign solids for use in PartDesign Bodies, and more.
Printer 3D
- Macro 3d Printer Slicer: Exports current design to slicer software or CAM software.
- Macro 3d Printer Slicer Individual Parts: This code, when run, will export the visible bodies at the top level (bodies deeper in the tree will be ignored) of the currently open design to individual STL files, and open them it in the slicing software that you use. This macro will look for Cura as the default but you can change it to any other slider by changing the SLICERAPP variable in the source code.
Raytracing
- Macro FreeCAD to Kerkythea: Export from FreeCAD to Kerkythea
Spreadsheet Workbench
- 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.
- Macro EasyAlias: Quickly create aliases in FreeCAD Spreadsheet workbench. It uses the labels from one column to create aliases for adjacent cells in the next column to the right, e.g. labels from Column A become aliases for the cells in Column B.
- Macro Spreadsheet Tools: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
- Macro FCSpreadSheet Extract: This macro save the data in a csv file with the formula or in a xml file.
- Macro Spreadsheet2html: Exports a spreadsheet as styled html. Intended as support in transfering data to office suits.
Utility
- Macro CenterFace: This macro red trace (editable) the center face (mass) with 1 point and print the coordinates
- Macro Center Align Objects with Faces or Edges: 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.
- Macro Easy cutouts for Enclosure Design: This macro makes Cutouts for Enclosures in a very handy way
- Macro MacroMenu: Add the macros found in the macros folder to the Macros menu of FreeCAD
- Macro ForceRecompute: Forces manual recompute of model
- Macro Recompute Profiler: measures time it takes to recompute each object in a project
- Macro Shake Sketch: Shake a sketch in order to discover its unconstrained parts.
- Macro Replace Part in Assembly: Replaces a part (simple copy) in an "Assembly" with another Part (simple copy).
- Macro Toggle Drawstyle: This macro toggles the Drawstyle of the selected object
- Macro Toggle Drawstyle Optimized: This macro toggles the Drawstyle of the selected object (same Macro Toggle Drawstyle above optimized all language)
- Macro HighlightCommon: Highlight common parts.
- Macro HighlightDifference: Compute the difference between two shapes.
- Macro cross section: displays an interactively slidable cross-section.
- Macro Print_SceneGraph: prints the SceneGraph.
- Macro BoundingBox Tracing: This macro red trace (editable) around the BoundingBox with 6 rectangles
- Macro Arch Axis System Repartition: This macro help you to create an Arch Axis System along a line with a
- Macro Perpendicular To Wire: This macro positioned your object perpendicularly to wire selected.
- Macro merge duplicate materials: Merges materials that have the same base name (with different numeral endings like 001, 002,...) into one.
- Macro Unbind Numpad Shortcuts: rebinds standard view commands from digit keys to Ctrl+digit, so that they don't spin the view by accident when entering numbers.
- Macro findConfigFiles: 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.
- Macro Snip: Easily post screenshots to the FreeCAD forum.
- Macro SketchUnmap: unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
- Macro PlacementAbsolufy: reset Part containers to global origin while maintaining objects absolute position.
- Macro SplitPropEditor: temporarily split the property editor from the combo view to a separated dock widget
- Macro StraightenObject: re-align object(s) with FreeCAD coordinate system according reference face/edge
- Macro_Visibility_Manager: manage visibility of document objects by type or individually
- Macro TreeToAscii: Prints model tree as "ASCII art" with custom pattern & style, and export to clipboard, file or embedded document
- 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 ImperialScales: Shows a list of US Imperial Arch scales list with the corresponding factor to apply to TechDraw pages or views
Wizards
- Template:MacroLink/cs: umonžuje rozbalit sbalené povrchy a nakreslit je na stránku.
- Template:MacroLink/cs: umožňuje rozložit povrchy krabice jakéhokoliv tvaru a nakreslit je na stránku.
- Template:MacroLink/cs: Imports and scales a .dat airfoil to desired chord length.
- Template:MacroLink/cs: zobrazí vyskakovací dialogové okno pro zadání rozměrů rohového dílu a potom vytvoří v dokumentu objekt a vytvoří stránku s pohledy shora, zepředu a z boku dílu.
Other interesting macros created by FreeCAD users
- By microelly2 : freeCAD_macro, geodata, Animation, freecad-nurbs, PieMenu, and more.
- By hamish2014: FreeCAD_assembly2, FreeCAD_drawing_dimensioning, and more.
- By triplus: IconThemes, ShortCuts, NavigationIndicator, TabBar, Launcher, PersistentToolbars, PieMenu, and more.
- By rockn: FreeCAD-Timber, FreeCAD-addons, FreeCAD-library, FreeCAD-StructuresBois, and more.
- By oddtopus: flamingo (workbench for metal structures).
- By dprojects: getDimensions FreeCAD macro to get chipboards dimensions to cut (woodworking).
- By Siardeni: workbench for create metal profiles, square tubing, z profile, palette, rotation, drawing, and more.
- By realthunder: Assembly3 workbench, and more.
Použití
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
Use the Addon Manager in Tools → Addon manager to install a macro that has been included in the FreeCAD-macros repository. introduced in version 0.17
Manual installation
Výše uvedená makra mohou být snadno vložena do jakékoliv instalace FreeCADu
- Zkopírujte Python kód makra z příslušné stránky
- Ve FreeCADu, Makro->Makra->Nové, a dejte mu jméno
- Vložte zkopírovaný kód
- Stiskněte tlačítko Save (Uložit) a restartuje FreeCAD
- Otevřete Správce maker, vyberte nové makro a klikněte na "execute" (Spusť)
Add a macro to a custom toolbar
Navíc můžete nové makro přidat i na Váš uživatelský nástrojový pruh
- Ve FreeCADu, jděte na Nástroje -> Uživatelský
- Ve záložce Makra přidejte nové makro a pokud chcete definujte jeho ikonu a klávesovou zkratku
- V záložce Nástrojové pruhy vytvořte nový nástrojový pruh a přidejte Vaše nové makro přetáhnutím jej z kategorie "Makra".