Macro SelectVisible: Difference between revisions

From FreeCAD Documentation
(Vertical {{Macro}}; fixed icon)
m (Typo)
Line 28: Line 28:


<!--T:7-->
<!--T:7-->
The lastest version of the macro is to be found at https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/SelectVisible.FCMacro
The latest version of the macro is to be found at https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/SelectVisible.FCMacro





Revision as of 20:10, 3 December 2018

Other languages:

Macro SelectVisible

Description
Select all visible objects.

Macro version: 1.0
Last modified: 2016-04-08
Author: galou_breizh
Author
galou_breizh
Download
None
Links
Macro Version
1.0
Date last modified
2016-04-08
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

All visible objects in the tree and only these will be selected.

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/SelectVisible.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/SelectVisible.FCMacro")


How To Use

Copy the macro in your macros' folder and run (see How to install macros for further details).

Code

The latest version of the macro is to be found at https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/SelectVisible.FCMacro