# Accessing Visibility Control of Coordination Models in Revit 2022 with Dynamo

**URL:** <https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262>\
**Category:** Revit\
**Tags:** revit, dynamo, navisworks\
**Created:** [April 8, 2022, 7:34am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262 "2022-04-08T07:34:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBH](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@JBH](https://forum.dynamobim.com/u/JBH)\
**Post date:** [April 8, 2022, 7:34am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/1 "2022-04-08T07:34:45Z")

</div>

Hi All,

Is it possible to control visibility of Coordination Models in Revit with Dynamo? I have tried the below with no success.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/1/41869c2593f6d9baf04126161ef0724d994e95ce.png)

I’ve even tried applying these settings to a view template and then applying view template properties to a view, this doesn’t even control this setting

The reason behind this struggle is that when a Coordination Model is linked into Revit this triggers Raster Processing when exporting views/sheets to PDF even when the Coordination Models are no longer loaded.  
Which means the 400+ drawings that do not need to see the Coordination Model still print in Raster.

Many thanks if anyone can assist!

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [May 6, 2022, 3:17pm UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/2 "2022-05-06T15:17:27Z")

</div>

@JBH late reply, but worth posting:

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

```auto
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument

views = UnwrapElement(IN[0])
bool = IN[1]

TransactionManager.Instance.EnsureInTransaction(doc)
for view in views:
	if bool == True:
		view.AreCoordinationModelHandlesHidden = True
		result = "Coordination models are hidden"
	else:
		view.AreCoordinationModelHandlesHidden = False
		result = "Coordination models are visible"
TransactionManager.Instance.TransactionTaskDone()

OUT = result

```

---

<div class="post-metadata">

**Author:** ![JBH](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@JBH](https://forum.dynamobim.com/u/JBH)\
**Post date:** [June 20, 2022, 2:40am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/3 "2022-06-20T02:40:11Z")

</div>

@Elie.Trad Thanks so much!

I found another very clunky work around using view templates. The python solution works much better!

---

<div class="post-metadata">

**Author:** ![asoriaq](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@asoriaq](https://forum.dynamobim.com/u/asoriaq)\
**Post date:** [July 15, 2024, 9:23pm UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/5 "2024-07-15T21:23:21Z")

</div>

Hi, it is posible to apply only to a current view, im trying but it doesn work.  
Im leanring so, im not an expert coding, ill apreciate your help. Thanks  
 ![Captura de pantalla 2024-07-15 152043](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/993d35ce8177d30a5f85f39c00a6d06b736c97a1.png)

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [July 16, 2024, 5:51am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/6 "2024-07-16T05:51:02Z")

</div>

@asoriaq include the view in a list is the easiest way:

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

---

<div class="post-metadata">

**Author:** ![asoriaq](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@asoriaq](https://forum.dynamobim.com/u/asoriaq)\
**Post date:** [July 16, 2024, 11:15pm UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/8 "2024-07-16T23:15:07Z")

</div>

Thanks for answer, works perfectly

---

<div class="post-metadata">

**Author:** ![dr.luarez](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dr.luarez](https://forum.dynamobim.com/u/dr.luarez)\
**Post date:** [March 17, 2025, 11:36pm UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/9 "2025-03-17T23:36:00Z")

</div>

Hi, I’m currently new in python scripting and dynamo, and I tried doing this and I’m having still issue on the line 15. Let me know what I did wrong and I’m glad to learn from you

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

---

<div class="post-metadata">

**Author:** ![sjafarali75](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sjafarali75](https://forum.dynamobim.com/u/sjafarali75)\
**Post date:** [March 18, 2025, 5:15am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/10 "2025-03-18T05:15:29Z")

</div>

Convert `views` to a list. You are feeding it as a non-list. Use this line for `views`: `views = UnwrapElement(IN[0]) if isinstance(IN[0], list) else [UnwrapElement(IN[0])]`

---

<div class="post-metadata">

**Author:** ![dr.luarez](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dr.luarez](https://forum.dynamobim.com/u/dr.luarez)\
**Post date:** [March 18, 2025, 8:32am UTC](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/11 "2025-03-18T08:32:41Z")

</div>

Thanks, I did plug it in on the line and it works.
