Switch to show hidden elements

dynamo

#1

how to switch to “show hidden elements” in Revit using Dynamo (Revit API)
this possible?

image

I want using Revit API to enable this mode and then disable


#2

ok , its way im must to use
first - enable
http://www.revitapidocs.com/2017.1/1e3fa28b-7738-ee26-f983-c9ebfb08f098.htm

second - disable
http://www.revitapidocs.com/2017.1/e87fc993-5dc8-bb39-b7a7-fe91d075489a.htm

and select mode
http://www.revitapidocs.com/2017.1/8c0c72db-2801-3642-72bb-108cfdff23e1.htm

i still dont now how use it but ill try…


#3

try enable:
doc.ActiveView.EnableRevealHiddenMode() - is work

try disable:
doc.ActiveView.DisableTemporaryViewMode(RevealHiddenElements) - not work
trouble in step : RevealHiddenElements is not defined - any ideas ?

this work for disable all mode:
http://www.revitapidocs.com/2017.1/d3ca63c1-b150-c1cd-2610-7083bd1b8263.htm
doc.ActiveView.TemporaryViewModes.DeactivateAllModes()


#4

im cant get current mode
as TemporaryViewMode
http://www.revitapidocs.com/2017.1/8c0c72db-2801-3642-72bb-108cfdff23e1.htm

to use
http://www.revitapidocs.com/2017.1/a260a05e-3c58-6d09-901d-a99dfb39186b.htm


#5

Done

enable mode:
doc.ActiveView.EnableRevealHiddenMode()

disable mode:
mode=TemporaryViewMode.RevealHiddenElements
disable_mode = doc.ActiveView.DisableTemporaryViewMode(mode)