# Looking to Open Newly Created Schedule View à la fin

**URL:** <https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738>\
**Category:** Revit\
**Tags:** revit, python, schedule, dynamo, views\
**Created:** [February 3, 2023, 10:23pm UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738 "2023-02-03T22:23:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.large](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t.large/32/89412_2.png) [@t.large](https://forum.dynamobim.com/u/t.large)\
**Post date:** [February 3, 2023, 10:23pm UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738/1 "2023-02-03T22:23:42Z")

</div>

I have created a script that creates and then builds a Schedule. The trouble I am having is: how do you tell Dynamo to open a schedule view by feeding the node a scheduleView (Revit.Elements.Views.ScheduleView)? I’ve tried using the “Show Element” node from GeniusLoci (I’ll paste the Python code below) but Revit then tells me there is “No good view could be found.”

Has anyone been able to ‘call up’ a schedule view, with a node that is fed a Revit.Elements.Views.ScheduleView element/input?

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

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

clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

import System
from System.Collections.Generic import List

elements = UnwrapElement(IN[0]) if isinstance(IN[0],list) else [UnwrapElement(IN[0])]

elemId = List[ElementId](x.Id for x in elements)
uidoc.ShowElements(elemId)
uidoc.Selection.SetElementIds(elemId)	
OUT = IN[0]

```

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 4, 2023, 1:55am UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738/2 "2023-02-04T01:55:11Z")

</div>

The active view can only be changed when there is no active transaction, as noted in the remarks here: [ActiveView Property](https://www.revitapidocs.com/2023/b6adb74b-39af-9213-c37b-f54db76b75a3.htm)

Because Dynamo runs a transaction for each, I am not sure if this is possible in the context of Dynamo.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [February 4, 2023, 8:04am UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738/3 "2023-02-04T08:04:56Z")

</div>

> [@jacob.small](#):
>
> Because Dynamo runs a transaction for each, I am not sure if this is possible in the context of Dynamo.

I can confirm that this is not possible within a single script, you’ll have to split it up into multiple, where one ends with changing the active view.

---

<div class="post-metadata">

**Author:** ![t.large](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t.large/32/89412_2.png) [@t.large](https://forum.dynamobim.com/u/t.large)\
**Post date:** [February 7, 2023, 6:25pm UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738/4 "2023-02-07T18:25:10Z")

</div>

Thank you both for verifying, I’ll have to ignore this feature in my subsequent scripts.

---

<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 7, 2023, 7:00pm UTC](https://forum.dynamobim.com/t/looking-to-open-newly-created-schedule-view-a-la-fin/85738/5 "2023-02-07T19:00:45Z")

</div>

You can actually still do this if you use the `RequestViewChange()` method instead. You just need to use a transaction node to ensure the view is available first.

`uiapp.ActiveUIDocument.RequestViewChange(myView)`

> **[RequestViewChange Method](https://www.revitapidocs.com/2023/a2e920d4-2849-282e-c25f-40a4d2cbef2d.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018
