Macros recipes/ko
이 페이지에는 FreeCAD 설치에 기능을 추가할 수 있는 매크로가 나열되어 있습니다.
매크로를 작성하고 이 페이지의 매크로 분류 중 하나에 추가하고 싶다면, 매크로 문서로 이동하여 매크로를 올바르게 문서화하는 방법에 대해 자세히 알아보세요.
분류
3D View operations
Macro FCCamera: This macro can rotate the screen in a defined angle and the defined axis and creates a plan to face the screen to create a form in the specified plan positions the selected face facing the screen, to detect the position of the camera.
Macro Mouse Cross: This small macro turns the arrow of the mouse in a precision cross.
Macro Rotate View Free: This macro is used in the Python console and rotates the current view in the angle and plane given.
Macro Screen Wiki: This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions.
Macro Snip: Easily post screenshots to the FreeCAD forum.
Macro View Rotation: Provides a GUI to permit rotation of view by precise amounts in all three directions.
Macro Zoom 1:1: 1:1 Zoom so objects appear their actual size on the screen.
Animation
Macro Animator: Animate your model by animating its properties with this feature Python object.
Macro 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
Macro Build Utility: This macro provides a utility to assemble a project from sub-project files using the Merge Project facility.
Macro clone explicit: Creates a copy of each selected object and sets its properties to an expression linking to the original object, making it an explicit and editable clone.
Macro Packages: Pip frontend for installing pypi packages into the FreeCAD environment.
Macro Python Assistant Window: This macro provides a cut/copy/paste workspace for Python code, it is segmented so different sections can be selected and it is persistent between FreeCAD sessions.
Qt Example: Example of using Qt commands, their connections, extraction and data assignment.
scanObjects: Inspection tool for FreeCAD macro development and project debug.
Macro TNP Solution: A basic example of how the Topological Naming Problem can be solved. The macro is intended for programmers only.
Conversion
Macro Batch export to mesh: Helps batch exporting STL and OBJ files. It adds a GUI for speeding up the conversion and file saving of selected objects.
Macro Compound Plus: Draft command set in a small macro for the 2D sketch example: work with the DXF files.
Macro DeepCopy: Make a compound out of a part with a copy of all its shapes.
Macro Dxf To Shape: Macro utility for create unique wire with many wires, the type wire created is selected to MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, Bezier curve.
Macro FCBmpImport: Import Black and White BMP images into FreeCAD as sketch, wire, or solid or Grayscale BMP for lithophanes.
Macro FCWire To Volume: This macro create boolean operation with the objects selected just select the wires give the thickness and click "Create".
Macro Iges PyImporter: Imports an iges file with entity 128, for example an iges-file from FreeShip, into FreeCAD.
Macro MultiCopy: MultiCopy allows the duplication (copy and paste) of multiple FreeCAD objects that can be labelled sequentially and in a custom manner.
Macro PartToVRML: Converts selected parts to VRML meshes for small size and faster loading (VRML models Kicad and Blender compatible).
Draft Workbench and 2D
Macro EdgesToArc: Converts the selected Edges to a circular Arc if possible. Useful for restoring discretized arcs.
Macro FC Convert Lines: This macro convert the object line, wire in line Dash, DashDot, DashDotDot, ZigZag and Hand with the dimensions given.
Fem Workbench
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.
Gui
Macro MacroMenu: Add the macros found in the macros folder to the Macros menu of FreeCAD.
Macro SplitPropEditor: Temporarily split the property editor from the combo view to a separated dock widget.
Macro Toggle Panels Visibility: This macro toggles the visibility of various supporting panels in FreeCAD, allowing the main window to be viewed with all available screen space.
Macro MacroToolbarManager: Easily manage custom macro toolbars, allows to create, rename, and delete toolbars, add and remove the macros, edit shortcuts and icons, even includes a simple xpm icon maker tool.
정보 및 측정
Macro CenterFace: This macro red trace (editable) the center face (mass) with 1 point and print the coordinates.
질량중심 매크로: 선택한 밀도로 선택된 여러 개체의 총 질량과 질량 중심을 보여 줍니다.
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 FC element selector: This macro display all elements below cursor same "Macro Mouse over cb" with GUI (elements covered by other elements will also be displayed).
FCInfo 매크로: 선택한 형상에 대한 일련의 정보를 제공하며 길이, 경사(도, 라디안, 등급) 형상, 표면, 부피 및 다양한 국제 단위와 앵글로색슨 단위로 선택한 밀도로 형태의 무게를 변환하여 표시할 수 있습니다.
Macro FCInfo ToolBar: Gives a series of information about the selected shape as FCInfo in a mini ToolBar.
Macro FCInfoGlass: Gives a series of information about the selected shape and displayed in screen 3D.
Macro FCInfoToMouse: Provides informations coordinates, length and angles in real time on the mouse in a bubble annotation displayed in the 3D screen.
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 Mouse over cb: This macro display all elements below cursor (elements covered by other elements will also be displayed).
Macro SimpleProperties: Display in a concise way basic physical properties of an object (volume, bound box dimensions, ...).
Libraries
Macro BOLTS: The aim of BOLTS is to build a free and open-source standard parts library for CAD applications.
Mathematical functions
Object creation
Macro AeroFoil: AeroFoil creates airfoil curves and faces using pre-defined models, algebraic functions, and DAT or CSV Files.
Macro Circle: Create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point) on choice (same above without GUI).
Macro CirclePlus: Create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point) on choice (same below but with GUI) plus create sector and face.
Macro Cut Circle: Cut a circle or arc and create x arcs, giving the number of cut.
Macro Cut Line: Cut a line and create x points, giving the number of points, create line or not, create points or not, create bicolor or not on choice.
Macro HilbertCurve: Creates an Hilbert curve wire in 2 or 3 dimensions with many iterations.
Macro Honeycomb: Creates a feature Python Honeycomb object compatible in and out of PartDesign.
Macro ImportAirfoil: Airfoil coordinates import, then scale the airfoil, rotate, translate in the plane, translate along the span, select the plane and the main axis, and turn the geometry into a sketch.
Macro Intersection: Finds the intersection between 2 or 3 selected edges/faces, works with Datum Planes and Datum Lines also. Creates a parametric feature Python object containing the shape of the intersection.
Macro Line Length: Create a line giving coordinate XYZ length and angle to plane X Y.
Macro Polyhedrons: This macro creates parametric polyhedrons (dodecahedron, icosahedron, tetrahedron, ...). Customizable via radius or side.
Macro Pyramid: This macro creates a parametric pyramid. All parameters are customizable just like with Part Cone.
Macro Repro Wire: This macro reproduces all element selected subobject wire or face.
Macro Solid Sweep: Creates a solid by sweeping a 2D profile along a trajectory previously selected in the 3D view. The 2D elements can be created through the regular tools in FreeCAD's GUI.
Macro Stairs: Create stair helix, create your stair nosing select and run the macro.
Macro Triangle AH: This macro creates a triangle by giving the head angle and the height of the triangle (the head of the triangle is positioned to the xyz coordinates 0.0).
Macro WireXYZ: This macro creates a Wire with the coordinates extracted from a file. The coordinates X Y Z are separated by a space.
Object transformation
Macro Align Object to View: This macro align the selected object to the current View and set the coordinates Placement of the camera.
Macro ArrayCopy: Copies the selected object several times, on an array grid.
Macro Bevel: Bevels selected vertices, creates parametric feature Python object, compatible with all solids (except with round edges) including features in Part Design bodies.
Macro Center Align Objects with Faces or Edges: This macro covers the following constraints: Concentric constraint among non cylindrical parts; and 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 CloneConvert: Creates a clone of the object and the converted in the chosen position and size (inch, mm, m, µm...). The base object is recognized in mm (FreeCAd base).
Macro Connect And Sweep: This macro easily creates a connection between two objects, an object and a point or between two points or the selected line, wire, edge (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle.
Macro Express Placement: Display and quickly edit a selected object's placement coordinates directly or via expressions.
Macro FlattenWire: Flattens draft wires that are not planar to their median Z coordinate.
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.
Macro JointWire: Allows to find and joint all non connected edge to the closest non connected one using a line.
Macro magicAngle: Small GUI for the Draft.rotate function. Allows to rotate panels and even other more complicated objects, like construction profiles.
Macro MatrixTransform: Apply linear space transformations to distort shapes. E.g., non-uniform scaling, shearing, mirroring, axes swapping.
Macro Move to Origin: This macro translates the Placement of an object so that a selected location becomes its new origin.
Macro MultiCuts: This macro improves boolean cut hierarchy by automatic labeling and using copies for cut.
Macro Rotate To Point: Macro to rotate an object around the center of its boundbox, its center of mass, or the last clicked point.
Macro Section: Alternative implementation of Part Section tool, more suitable for making sweep paths (parametric).
Macro SuperWire: Forces the creation of a Wire from lines and arcs that don't necessarily touch each other. Use this if normal wire operation fails.
Macro WireFilter: Filter wires from a sketch to only use certain ones, also 2D offsets, scales, rearranges wire order.
Object visibility, view properties and textures
colorManager: Allows to set face colors for all objects from a spreadsheet. Also you can browse colors for a manually selected face or object and see the effect in the 3D model in real-time.
Macro Colorize: Easily set colors of faces, edges, and vertices, including individual transparency levels.
Macro EasyReflector: Easily managed textures with a parametric feature python object that persists between FreeCAD and Document sessions.
Macro Texture: Create a project from a bmp image to create a texture easily.
Macro Toggle Drawstyle Optimized: This macro toggles the Drawstyle of the selected object (same as Macro Toggle Drawstyle above but optimized for all languages).
Macro Toggle Visibility: Set of three macro, macro 1: hidden the objects not selected, macro 2: displayed alls objects, macro 3: hidden alls objects.
Macro Toggle Visibility2 1-2: Set of two macro, macro 1:Macro_Toggle_Visibility2_1-2 hidden the objects not selected, macro 2:Macro_Toggle_Visibility2_2-2 displayed alls objects, macro with the original visibility.
Macro Toggle Visibility2 2-2: Set of two macro, macro 1:Macro_Toggle_Visibility2_1-2 hidden the objects not selected, macro 2:Macro_Toggle_Visibility2_2-2 displayed alls objects, macro with the original visibility.
setTextures: Allows to permanently store the URL of textures in a FreeCAD project and load stored textures.
부품설계 작업대
Macro PDWrapper: Encapsulates non-PartDesign solids for use in PartDesign Bodies, and more.
Printer 3D
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 slicer by changing the SLICERAPP variable in the source code.
Macro 3D Printer Workflow: Macro that creates an stl file with perfect rounding, i.e. without visible facets, from selected objects. It also allows to launch programs of your choice. For example to automate the FreeCAD -> Slicer -> printing workflow.
Raytracing
Utility
Macro Convert 021: Converts a FreeCAD file saved with a post-0.21 version back to 0.21 format.
Macro Download Classifications: Downloads a package of BIM classification systems (Masterformat, Uniformat, ...) to be used in BIM projects in FreeCAD.
Macro Duplicate Selection: This macro testing if one selection are duplicate, select the object IN THE 3D VIEW the "ForbiddenCursor" stay if the or one selection is duplicate, the macro stay resident.
Macro ExpandTreeItem: This macro expand selected items in the tree view. If not selection all item are expand/collapse.
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 ImperialScales: Shows a list of US Imperial Arch scales list with the corresponding factor to apply to TechDraw pages or views.
Macro PCBWay: Sends a selected object to PCBWay for manufacturing through CNC milling, laser cutting or 3D printing.
Macro SketchUnmap: Unmap a sketch from its current support and makes its placement absolute, eventually creating a locating datum plane.
Macro TreeToAscii: Prints model tree as "ASCII art" with custom pattern & style, and export to clipboard, file or embedded document.
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 WorkFeatures: Tool utility to create points, axes, planes and many other useful features to facilitate the creation of your project.
Wizards
Macro FCGear: Additional Workbench to create different types of gears, involute gear, involute rack, cycloide gear, bevel gear.
Macro Fonts Win10 PYMP: This little macro is dedicate to users of Windows 10. The explorer fonts for use the ShapeString is empty and this little macro can help you see easily the font to use.
Macro GenerateDrawing: Macro for automatic drawing generation with 3 normal projections and one isometric.
Macro GenerateViews: Macro for automatic 2D views generation with 6 normal projections and one isometric.
Macro Geneva Wheel: Allows the user to create a Geneva wheel mechanism from scratch. Must edit values within the Macro to alter the size of the object.
Macro Megaminx: Display a Megaminx and interactively do slice rotations.
Macro PropertyMemo: This macro creates an additional Property (memo or other text) for your object (works only with Draft objects).
Macro Unfold Box: Allows to unfold the surfaces of a box of any shape and to draw them on a page.
Woodworking
getDimensions: FreeCAD macro to get chipboards dimensions to cut (BOM, cutlist).
Macro Cabinets32: Creates side and top/bottom walls for a cabinet with drilled holes for connection parts of manufacturer Hettich.
Macro Joint: Creates a variety of joints, such as mortise/tenon, box joints, dovetail joints, and snap joints.
makeTransparent: Switches all parts from non-transparent to transparent, and back, allowing you to preview pilot holes, countersinks and other joints.
용법
자세한 설명은 매크로 설치 방법을 참조하고, 도구 모음에 매크로를 추가하여 쉽게 액세스할 수 있도록 하려면 도구 모음 사용자 지정을 참조하세요.
많은 매크로를 설치하는 것은 새로운 작업대를 설치하는 것과 같습니다; 이것은 추가 작업대를 설치하는 방법을 참조하세요.
자동 설치
도구 → Addon manager에서 애드온 관리자를 사용하여 FreeCAD-macros 저장소에 포함된 매크로를 설치하세요. introduced in 0.17
수동 설치
애드온 관리자를 사용하지 않으면 매크로를 수동으로 설치할 수 있습니다.
- 해당 매크로 페이지에서 파이썬 코드를 복사합니다.
- 매크로 메뉴 매크로 → 매크로를 열고 만들기를 누른 다음 이름을 지정합니다.
- 복사한 파이썬 코드를 붙여넣습니다.
- 저장 버튼을 누르고 FreeCAD를 다시 시작합니다.
- 사용하려면 매크로 메뉴를 다시 열고 새 매크로를 선택한 후 실행을 누르세요.
사용자 정의 도구 모음에 매크로 추가
- 도구 → 사용자 정의로 가세요.
- 매크로 탭에서 새 매크로 이름을 추가하고, 원하는 경우 아이콘과 단축키를 정의합니다.
- 도구 모음 탭에서 새 도구 모음을 만들고, 매크로 범주에서 매크로를 가져와 추가합니다.