Macro SelectVisible

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

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