Macro HighlightCommon: Difference between revisions

From FreeCAD Documentation
m (Version)
mNo edit summary
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:4-->
<!--T:4-->
{{Macro
{{Macro|Icon=Text-x-python|Name=HightlightCommon|Description=Highlight common parts|Author=JMG|Version=1.0}}
|Name=HightlightCommon
|Icon=Macro_HighlightCommon.png
|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
|Version=1.0
|Date=2015-09-24
|FCVersion=0.17 and above
|Download=[https://www.freecadweb.org/wiki/images/8/85/Macro_HighlightCommon.png ToolBar Icon]
}}


==Description== <!--T:5-->
==Description== <!--T:5-->
Highlight common parts by showing the common shape in red and setting half-transparency on original parts (the original objects are not modified)
Highlight common parts by showing the common shape in red and setting half-transparency on original parts (the original objects are not modified)

</translate>
{{Codeextralink|https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Utility/HighlightCommon.FCMacro}}
<translate>


<!--T:6-->
<!--T:6-->
[[File:Captura de pantalla de 2015-09-10 11-17-30.png|Volume common of objects selected]]
[[File:Captura de pantalla de 2015-09-10 11-17-30.png]]
{{Caption|Volume common of objects selected}}


==Script== <!--T:7-->
==Script== <!--T:7-->

<!--T:11-->
ToolBar Icon [[Image:Macro_HighlightCommon.png]]

<!--T:12-->
'''Macro_HighlightCommon.FCMacro'''
'''Macro_HighlightCommon.FCMacro'''


Line 19: Line 39:
* My blog [http://linuxforanengineer.blogspot.com.es/ Linux for an engineer] for the code and other interesting macros for FreeCAD
* My blog [http://linuxforanengineer.blogspot.com.es/ Linux for an engineer] for the code and other interesting macros for FreeCAD
* The discussion on forum [http://forum.freecadweb.org/viewtopic.php?f=22&t=12426 "collision detection", overlapping]
* The discussion on forum [http://forum.freecadweb.org/viewtopic.php?f=22&t=12426 "collision detection", overlapping]




</translate>
</translate>
<languages/>

Revision as of 17:24, 12 July 2019

Other languages:

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
FreeCAD version: 0.17 and above
Download: ToolBar Icon
Author: JMG
Author
JMG
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modified
2015-09-24
FreeCAD Version(s)
0.17 and above
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

ToolBar Icon

Macro_HighlightCommon.FCMacro

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

Links