| Opis |
|---|
| Wszystkie widoczne obiekty w drzewie i tylko te będą wybrane. Macro version: 1.0 Last modified: 2016-04-08 FreeCAD version: All Download: Ikona paska narzędzi Autor: galou_breizh |
| Autor |
| galou_breizh |
| Do pobrania |
| Ikona paska narzędzi |
| Odnośniki |
| Przepisy na makropolecenia Jak zainstalować makrodefinicje Dostosowanie pasków narzędzi |
| Wersja Makrodefinicji |
| 1.0 |
| Data zmian |
| 2016-04-08 |
| Wersja FreeCAD |
| All |
| Domyślny skrót |
| Brak |
| Zobacz również |
| - |
Wszystkie widoczne obiekty w drzewie i tylko te będą wybrane.
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")
Skopiuj makro do folderu makr i uruchom je (zobacz Jak instalować makra aby uzyskać więcej informacji).
Najnowszą wersję makra można znaleźć na stronie https://github.com/FreeCAD/FreeCAD-macros/blob/master/Utility/SelectVisible.FCMacro
Macro_Select.FCMacro
# FreeCAD Macro SelectVisible
__Name__ = 'Select Visible'
__Comment__ = 'All visible objects in the tree will be selected'
__Web__ = 'https://wiki.freecad.org/Macro_SelectVisible'
__Wiki__ = 'https://wiki.freecad.org/Macro_SelectVisible'
__Icon__ = 'https://wiki.freecad.org/images/5/51/SelectVisible.png'
__Help__ = 'All visible objects in the tree and only these will be selected'
__Author__ = 'galou_breizh'
__Version__ = '1.0'
__Status__ = 'Production'
__Requires__ = ''
import FreeCAD as App
import FreeCADGui as Gui
doc = App.activeDocument()
if not doc:
App.Console.PrintWarning('SelectVisible: no active document')
else:
Gui.Selection.clearSelection()
for o in doc.Objects:
if o.ViewObject.Visibility:
Gui.Selection.addSelection(o)