# Family Editor: "Family Element Visibility Settings" for Plan/RCP

**URL:** <https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346>\
**Category:** Revit\
**Created:** [July 31, 2018, 7:20pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346 "2018-07-31T19:20:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will.Finley](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@Will.Finley](https://forum.dynamobim.com/u/Will.Finley)\
**Post date:** [July 31, 2018, 7:20pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/1 "2018-07-31T19:20:42Z")

</div>

Does anyone know if there’s a node or package that can manipulate the on/off values in the Family Element Visibility Settings of Revit’s family editor?

My goal is to create a graph that will open all Specialty Equipment families and toggle “on” the Plan/RCP visibility for all geometry in the family and re-load them into the model.

Here’s an image of the dialog box inside the family editor that I am referring to:

![Family%20Element%20Visibility%20Settings](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/787bee660ca25eb36907a5d7c7ca0d84a1bcb483.png)

Thank you

---

<div class="post-metadata">

**Author:** ![dancleary](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dancleary/32/52179_2.png) [@dancleary](https://forum.dynamobim.com/u/dancleary)\
**Post date:** [May 9, 2019, 9:08pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/2 "2019-05-09T21:08:22Z")

</div>

Any luck with this stuff?  
I think I found the class we’ll need to use in the RevitAPI docs here:  
[http://www.revitapidocs.com/2020/7c6e06c8-7252-79dc-729c-945c9bf2faae.htm](http://www.revitapidocs.com/2020/7c6e06c8-7252-79dc-729c-945c9bf2faae.htm)

I’m having trouble using it correctly in dynamo/python though…

---

<div class="post-metadata">

**Author:** ![Heinrich\_Boldt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/heinrich_boldt/32/154159_2.png) [@Heinrich\_Boldt](https://forum.dynamobim.com/u/Heinrich_Boldt)\
**Post date:** [June 30, 2021, 12:40pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/3 "2021-06-30T12:40:31Z")

</div>

was searching on this topic today,  
no experiences right now?

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [June 30, 2021, 1:17pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/4 "2021-06-30T13:17:54Z")

</div>

Funny i had to do something like that not too long ago

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/9/39cad39cd66f3cf0b6ace366526d43e2ea350a56.png)

```auto

# Charger les bibliothèques DesignScript et Standard Python
import sys
import clr,System
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

doc = DocumentManager.Instance.CurrentDBDocument

def toList(elt):
	if isinstance(elt,list):
		return UnwrapElement(elt)
	else:
		return [UnwrapElement(elt)]
		
elt = UnwrapElement(IN[0])
coarse = IN[1]
medium = IN[2]
fine = IN[3]
frontBack = IN[4]
leftRight = IN[5]
planRCPCut = IN[6]

visibility = FamilyElementVisibility(FamilyElementVisibilityType.Model)
visibility.IsShownInCoarse = coarse
visibility.IsShownInMedium = medium
visibility.IsShownInFine = fine
visibility.IsShownInFrontBack = frontBack
visibility.IsShownInLeftRight = leftRight
visibility.IsShownInPlanRCPCut = planRCPCut
TransactionManager.Instance.EnsureInTransaction(doc)
elt.SetVisibility(visibility)
TransactionManager.Instance.TransactionTaskDone()

OUT = "ok"

```

---

<div class="post-metadata">

**Author:** ![Heinrich\_Boldt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/heinrich_boldt/32/154159_2.png) [@Heinrich\_Boldt](https://forum.dynamobim.com/u/Heinrich_Boldt)\
**Post date:** [July 1, 2021, 11:18am UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/5 "2021-07-01T11:18:00Z")

</div>

Wow,  
nice thanks for sharing.

I found that with the OOTB-Nodes it is also possible to change the setting, but only running in Family Editor.

What is the input? is it “Selected Element”?  
or is it possible to select a family in Project and change the behavior of that family with Dynamo Player then?

BR  
Heinrich Boldt

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [July 1, 2021, 11:32am UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/6 "2021-07-01T11:32:47Z")

</div>

Since your changing something inside a family you need to access the geometry in the family so no you cannot do that from a project.  
The input is the element you want to change. It was to change some lines in ly case so i would filter the lines based on the type and change the values.

---

<div class="post-metadata">

**Author:** ![Heinrich\_Boldt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/heinrich_boldt/32/154159_2.png) [@Heinrich\_Boldt](https://forum.dynamobim.com/u/Heinrich_Boldt)\
**Post date:** [July 1, 2021, 12:32pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/7 "2021-07-01T12:32:33Z")

</div>

![Change visibility](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29d078390af12757619be732ea6657639022f13f.png)

[Visibility Settings Familyeditor.dyn](https://forum.dynamobim.com/uploads/short-url/1XL05Rx1iouCl7vOn486yBdMeHR.dyn) (31.5 KB)  
this is what I used to change the Visibility.  
We use lots of Subcategories for Lines and 3D Elements.  
I filtered all 3D-Elements and changed the visibility for “planRCPCut” to true.  
I would like to use it in the project with View templates - when the visibility is disabled, we cant use it in View templates 🙂

I tried your script, but I got an error ☹

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/df4c56d8f0ec17fb4ac9ba7f4869565677967781.png)

Thanks again for participating in this discussion  
Heinrich Boldt

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [July 1, 2021, 6:29pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/8 "2021-07-01T18:29:08Z")

</div>

Symbolic lines and model elements do not use the same code actually

---

<div class="post-metadata">

**Author:** ![Colton\_Haney](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/colton_haney/32/111495_2.png) [@Colton\_Haney](https://forum.dynamobim.com/u/Colton_Haney)\
**Post date:** [July 8, 2021, 10:23pm UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/9 "2021-07-08T22:23:14Z")

</div>

@Daniel_Hurtubise I too tried using your Python script to control the visibility of objects in my Family. It works great for objects like extrusions, but whenever I try to use it on Model Lines, I receive an error stating that the object doesn’t have a “SetVisibility” attribute. I know I can manually adjust the visibility on the Model Lines. But I am confused as to why it doesn’t work with the Python Script that you provided. Any insight would be greatly appreciated.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7b4ca0b352fb0b7a0b5de5616f515589c423280d.jpeg)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [December 26, 2021, 9:03am UTC](https://forum.dynamobim.com/t/family-editor-family-element-visibility-settings-for-plan-rcp/24346/10 "2021-12-26T09:03:13Z")

</div>

Sorry for totally missing that.  
Not all elements uses the same methods, i think i have another one for Model Lines
