# Disable "show annotation categories in this view" check box

**URL:** <https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257>\
**Category:** Revit\
**Created:** [May 6, 2022, 1:53pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257 "2022-05-06T13:53:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmillerSNYXQ](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmillerSNYXQ](https://forum.dynamobim.com/u/dmillerSNYXQ)\
**Post date:** [May 6, 2022, 1:53pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/1 "2022-05-06T13:53:47Z")

</div>

I am working on a script manipulating viewports and view titles. The annotation such as grids and levels make calculating certain center locations difficult and produces undesired results. To combat this I can uncheck the “show annotation categories in this view” and then run the dynamo scrips and everything works. I would like to build that step into the my graph but I can not find a way to uncheck that setting.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/be5a5bcdf2f0160d83e1367bd2af9643d1997e56.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [May 6, 2022, 2:10pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/2 "2022-05-06T14:10:43Z")

</div>

This is just a property of the view.

> **[AreAnnotationCategoriesHidden Property](https://www.revitapidocs.com/2022/0161908d-eb65-f0d1-497d-69884ab39791.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

---

<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:18pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/3 "2022-05-06T15:18:41Z")

</div>

@dmillerSNYXQ just replace the property mentioned by @Nick_Boyts in the following script:

> [@Accessing Visibility Control of Coordination Models in Revit 2022 with Dynamo](https://forum.dynamobim.com/t/accessing-visibility-control-of-coordination-models-in-revit-2022-with-dynamo/75262/2):
>
> @JBH late reply, but worth posting: 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.AreCoordinationModelHan…

---

<div class="post-metadata">

**Author:** ![dmillerSNYXQ](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmillerSNYXQ](https://forum.dynamobim.com/u/dmillerSNYXQ)\
**Post date:** [May 6, 2022, 8:49pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/4 "2022-05-06T20:49:03Z")

</div>

Thank you, @Nick_Boyts and @Elie.Trad, for the help. I am not sure how to select both of you for providing the solution; it seems I can only choose one post as the solution.

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [January 4, 2024, 11:47am UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/5 "2024-01-04T11:47:14Z")

</div>

> [@Nick\_Boyts](#):
>
> This is just a property of the view.
> 
> [AreAnnotationCategoriesHidden Property](https://www.revitapidocs.com/2022/0161908d-eb65-f0d1-497d-69884ab39791.htm)

I think this is a read-only thing but not able to set yes/no “Show annotation categories in the view” ?

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 4, 2024, 7:23pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/6 "2024-01-04T19:23:31Z")

</div>

It’s a get/set parameter so it should work. Pretty sure I’ve used it in the past.

---

<div class="post-metadata">

**Author:** ![Joe.Charpentier](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joe.charpentier/32/49617_2.png) [@Joe.Charpentier](https://forum.dynamobim.com/u/Joe.Charpentier)\
**Post date:** [January 4, 2024, 8:24pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/7 "2024-01-04T20:24:41Z")

</div>

Is there a view template assigned to the view that you are trying to modify? This could control whether or not you can check/uncheck for the particular view. (You should be able to check in the Visibility Graphics Dialog)

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [January 4, 2024, 8:30pm UTC](https://forum.dynamobim.com/t/disable-show-annotation-categories-in-this-view-check-box/76257/8 "2024-01-04T20:30:26Z")

</div>

Hi, I tried but I just saw relevant remark from Mr. Joe.Charpentier  
 ![reponse 04 01 2024](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a49c993de32a0cddd73970e1919e39f296a6e6a6.gif)

I leave script just in case

```auto
import sys
import clr

clr.AddReference("RevitAPI")
import Autodesk 
from Autodesk.Revit.DB import View

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager 
from RevitServices.Transactions import TransactionManager 

doc = DocumentManager.Instance.CurrentDBDocument
view_source=UnwrapElement(IN[0])
bool=IN[1]

TransactionManager.Instance.EnsureInTransaction(doc)
if bool:
    view_source.AreAnnotationCategoriesHidden=bool
    message='Annotation Category is hide'
else:
    view_source.AreAnnotationCategoriesHidden=bool
    message='Annotation Category is active'
TransactionManager.Instance.TransactionTaskDone()

OUT = message

```

sincerely  
christian.stan
