Hide none selected?

 From:  coi (MARCO)
7013.3 In reply to 7013.2 
..and here would be the corresponding script:

Isolate the selection (hide everything else that is not selected):

code:
script:moi.geometryDatabase.invertSelection(); moi.geometryDatabase.hide(true);