# Changes to Document.ActiveView node in Revit 2022

**URL:** <https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [February 16, 2022, 1:33am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384 "2022-02-16T01:33:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![markb43](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markb43](https://forum.dynamobim.com/u/markb43)\
**Post date:** [February 16, 2022, 1:33am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/1 "2022-02-16T01:33:13Z")

</div>

I used to have a script that would change the title of an active detail. I used the Document.Current node connected to the Document.ActiveView node to get the detail I wanted to change. But now in Revit 2022 and Dynamo version 2.12, these nodes only return the active sheet the detail is on, not the detail itself. Is there a new way to get the active view in dynamo 2.12?

Thank you!

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.dynamobim.com/u/daniel1)\
**Post date:** [February 16, 2022, 1:44am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/2 "2022-02-16T01:44:52Z")

</div>

Do you mean the active sheet and not the view itself, rather than the sheet itself? The active sheet and the sheet itself kinda sound like the same thing…

---

<div class="post-metadata">

**Author:** ![markb43](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markb43](https://forum.dynamobim.com/u/markb43)\
**Post date:** [February 16, 2022, 1:56am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/3 "2022-02-16T01:56:49Z")

</div>

Hi yes, sorry about that. I have updated the post accordingly.

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.dynamobim.com/u/daniel1)\
**Post date:** [February 16, 2022, 2:02am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/4 "2022-02-16T02:02:52Z")

</div>

How many views are on your sheet? Do you click into your view before running the graph?

---

<div class="post-metadata">

**Author:** ![truevis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/truevis/32/8634_2.png) [@truevis](https://forum.dynamobim.com/u/truevis)\
**Post date:** [February 16, 2022, 5:14am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/5 "2022-02-16T05:14:35Z")

</div>

> [@daniel1](#):
>
> Do you click into your view before running the graph?

Yeah, the Sheet is a View, too.

---

<div class="post-metadata">

**Author:** ![markb43](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markb43](https://forum.dynamobim.com/u/markb43)\
**Post date:** [February 16, 2022, 2:56pm UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/6 "2022-02-16T14:56:11Z")

</div>

There can be between 5 and 25 views per sheet.

---

<div class="post-metadata">

**Author:** ![markb43](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markb43](https://forum.dynamobim.com/u/markb43)\
**Post date:** [February 16, 2022, 2:57pm UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/7 "2022-02-16T14:57:34Z")

</div>

I do click into the view before running the script. It will still always return the sheet the view is on.

---

<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:** [February 16, 2022, 3:14pm UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/8 "2022-02-16T15:14:27Z")

</div>

EDIT: I tried this in 2022 and it recognizes when the view is enabled. The Dynamo node will not automatically update though. Are you refreshing your graph after enabling the view?

---

<div class="post-metadata">

**Author:** ![markb43](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@markb43](https://forum.dynamobim.com/u/markb43)\
**Post date:** [February 16, 2022, 3:37pm UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/9 "2022-02-16T15:37:19Z")

</div>

I will check that, thank you.

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.dynamobim.com/u/daniel1)\
**Post date:** [February 17, 2022, 1:56am UTC](https://forum.dynamobim.com/t/changes-to-document-activeview-node-in-revit-2022/73384/10 "2022-02-17T01:56:13Z")

</div>

Yes, thou must click into the view first with a fresh graph. If that is a nuisance, it is possible to avoid that step entirely, but only if you have a way of knowing which view title that you would like to change.
