Macro Bevel: Difference between revisions

From FreeCAD Documentation
(bug fix, uninitialized variable)
(0.2021.10.10.rev3, bug fix, only need to fix basefeature on deletion when inside part design body)
Line 8: Line 8:
|Description=Bevel selected vertices of solid objects, parametric, compatible with Part Design
|Description=Bevel selected vertices of solid objects, parametric, compatible with Part Design
|Author=TheMarkster
|Author=TheMarkster
|Version=0.2021.10.10.rev2
|Version=0.2021.10.10.rev3
|Date=2021-10-10.rev2
|Date=2021-10-10.rev3
|FCVersion=python 3 versions
|FCVersion=python 3 versions
|Download=[https://wiki.freecadweb.org/File:bevel.svg ToolBar Icon]
|Download=[https://wiki.freecadweb.org/File:bevel.svg ToolBar Icon]
Line 36: Line 36:


</translate>
</translate>
{{Codeextralink|https://gist.github.com/mwganson/25ee4dc925c8bcf1182bd9979025ed2d/raw/f01b54a23453bedc740815773a838c8e91397a7a/Bevel.FCMacro|Bevel.FCMacro}}
{{Codeextralink|https://gist.github.com/mwganson/25ee4dc925c8bcf1182bd9979025ed2d/raw/29ecb1b8dd054d1edb73d075f78faaa9a59fbce4/Bevel.FCMacro|Bevel.FCMacro}}
<translate>
<translate>



Revision as of 07:45, 10 October 2021

Other languages:

Macro Bevel

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

Macro version: 0.2021.10.10.rev3
Last modified: 2021-10-10.rev3
FreeCAD version: python 3 versions
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2021.10.10.rev3
Date last modified
2021-10-10.rev3
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/29ecb1b8dd054d1edb73d075f78faaa9a59fbce4/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/29ecb1b8dd054d1edb73d075f78faaa9a59fbce4/Bevel.FCMacro")


ToolBar Icon

Script

Macro Bevel.FCMacro