Macro Joint: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 24: Line 24:
#Select the joint type to create. You will then find a parametric joint object with some default property settings, which will need to be modified for your particular needs.
#Select the joint type to create. You will then find a parametric joint object with some default property settings, which will need to be modified for your particular needs.


The macro works in [[Part_Design|Part Design]], but also with solids created in any other workbench.
The macro works in [[PartDesign_Workbench|Part Design Workbench]], but also with solids created in any other workbench.


Full documentation can be found on github: [https://github.com/mwganson/joint Joint].
Full documentation can be found on github: [https://github.com/mwganson/joint Joint].

Revision as of 13:08, 12 December 2021

Other languages:

Macro Joint

Description
Make joints of various types, including mortise/tenon, box joints, dovetail joints, and various snap joints

Macro version: 0.2021.12
Last modified: 2021-10-12
FreeCAD version: Python 3 versions
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2021.12
Date last modified
2021-10-12
FreeCAD Version(s)
Python 3 versions
Default shortcut
None
See also

Description

This macro is used to create joints of various types, including mortise and tenon joints, box joints, dovetail joints, finger joints (using dovetail type), and a few snap joints, including cantilever, annular, ball, and split types.

Usage

  1. Select a face and run the macro.
  2. Select the joint type to create. You will then find a parametric joint object with some default property settings, which will need to be modified for your particular needs.

The macro works in Part Design Workbench, but also with solids created in any other workbench.

Full documentation can be found on github: Joint.

Macro Joint screenshot -- a few of the joint types that can be made‎

Legend

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://gist.github.com/mwganson/09d70aa11183e57b5f5925169b4c70b9/raw/0851dc797c8c57b324832aa56fec60cb9fcea5d0/Joint.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://gist.github.com/mwganson/09d70aa11183e57b5f5925169b4c70b9/raw/0851dc797c8c57b324832aa56fec60cb9fcea5d0/Joint.FCMacro")


ToolBar Icon

Script

Macro Joint.FCMacro