Macro HighlightCommon: Difference between revisions

From FreeCAD Documentation
(Vertical {{Macro}}; fixed icon)
m (Description +)
Line 4: Line 4:
{{Macro
{{Macro
|Name=HightlightCommon
|Name=HightlightCommon
|Description=Highlight common parts
|Description=Highlight common parts by showing the common shape in red and setting half-transparency on original parts (the original objects are not modified)
|Author=JMG
|Author=JMG
|Version=1.0
|Version=1.0

Revision as of 11:14, 14 December 2018

Other languages:

Generic macro icon. Create your personal icon with the same name of the macro HightlightCommon

Description
Highlight common parts by showing the common shape in red and setting half-transparency on original parts (the original objects are not modified)

Macro version: 1.0
Last modified: 2015-09-24
Author: JMG
Author
JMG
Download
None
Links
Macro Version
1.0
Date last modified
2015-09-24
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

Highlight common parts by showing the common shape in red and setting half-transparency on original parts (the original objects are not modified)

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://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Utility/HighlightCommon.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://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Utility/HighlightCommon.FCMacro")


Volume common of objects selected

Script

Macro_HighlightCommon.FCMacro

The code is visible on Github: Utility/HighlightCommon.FCMacro.

Links