I managed to create a script to Hide from view (using an Archi-Lab node) some elements, and following @jostein_olsen, also can select the elements if previously I turn the Show Hidden Elements on.
last Python CODE (first on just fits this project in partticular):
import clr
clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript.Geometry
from Autodesk.DesignScript.Geometry import *
clr.AddReference('DSCoreNodes')
from DSCore import *
lista = IN[0]
booleana = []
for lst in lista:
if lst.GetParameterValueByName('ON/OFF MALLA') == 'Encendido':
lst.SetParameterByName('ON/OFF MALLA','Apagado')
booleana.append(True)
elif lst.GetParameterValueByName('ON/OFF MALLA') == 'Apagado':
lst.SetParameterByName('ON/OFF MALLA','Encendido')
booleana.append(False)
#Assign your output to the OUT variable.
OUT = (lista,booleana)
I created a parameter “ON/OFF” that takes the identation if the object is Visible/Hidden. You can adjust this as you like for your particular needs. Interesting thing is if you use it with Dyno Plugin
(@Aleksey_Lobanov), it works just as expected, as a switch.
NOTES: If the element is hidden the first time you want to work with it, you have to turn on the “Show Hidden Elements” and Dyno will do the rest, because the selection of the elements remains.
Does this Archilab node still exist? I am trying to unhide some elements through Dynamo and I do have archi-lab package installed, but I dont have this node View.UnHideElements.
Or is there something extra that I need to be able to use this node?