Makro návody
Tutorial |
Topic |
---|
Macros |
Level |
Beginner |
Time to complete |
Authors |
FreeCAD version |
Example files |
See also |
None |
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 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 16)
- Macro Rubik Cube: Display a Rubik Cube and interactively do slice rotations.
- Macro Megaminx: Display a Megaminx and interactively do slice rotations.
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
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 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.
Printer 3D
- Macro 3d Printer Slicer: Exports current design to slicer software or CAM software.
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 Spreadsheet Tools: This macro helps managing cells inside FreeCAD Spreadsheet workbench.
- 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: This macro save the data in a csv file with the formula or in a xml file.
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 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 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.
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
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.
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ť)
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".