Hide/Uhide Elements

Hi All;

Following some topics I read:

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.

But, how can I UnHide those elements selected?

I’m trying to make a script that works as a switch to turn on/off the elements I want.

Thanks in advance.

Just realized that in Archi-Lab was a node called View.UnHideElements. :zipper_mouth_face:

Here’s the script if anyone want to do something similar:


1 Like

I made some inprovements:

last Python CODE (first on just fits this project in partticular):

import clr

import Autodesk.DesignScript.Geometry
from Autodesk.DesignScript.Geometry import *

from DSCore import *

lista = IN[0]

booleana = []
for lst in lista:
	if lst.GetParameterValueByName('ON/OFF MALLA') == 'Encendido':
		lst.SetParameterByName('ON/OFF MALLA','Apagado')
	elif lst.GetParameterValueByName('ON/OFF MALLA') == 'Apagado':
		lst.SetParameterByName('ON/OFF MALLA','Encendido')
#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.

Hope, someone will find it useful.




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?

@peterfarkas welcome them to the community!

use any one in below.

Thank you @_Vijay this is great!