Macro Bevel

From FreeCAD Documentation
Revision as of 21:06, 10 October 2021 by TheMarkster (talk | contribs) (v0.2021.10.10.rev4 -- implement double-click in tree to bring up vertex editor)
Other languages:

Macro Bevel

Description
Bevel selected vertices of solid objects, parametric, compatible with Part Design

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

Description

This macro is used to bevel the selected vertices of solid objects, it also works with faces. If the selected object is a Part Design feature the Bevel parametric object will place itself into the Part Design body and further modeling can be done on the same body. If the selected object is not a Part Design feature, then a new object is added to the tree as a standard, parametric feature python object.

Usage: Select vertices in the 3D view that you desire to bevel and run the macro. You can also select the entire object in the tree, in which case all the vertices will be beveled. This is very similar to other dressup tools in FreeCAD, such as Fillets and Chamfers, and behaves very similarly to those objects, except it is cross-compatible with both Part and Part Design workbenches.

Full documentation can be found on github: Bevel.

Macro Bevel screenshot‎

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/25ee4dc925c8bcf1182bd9979025ed2d/raw/058881c06c7e1f53600a6c58a0db4278c8aa9ecf/Bevel.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/25ee4dc925c8bcf1182bd9979025ed2d/raw/058881c06c7e1f53600a6c58a0db4278c8aa9ecf/Bevel.FCMacro")


ToolBar Icon

Script

Macro Bevel.FCMacro