# Add sheet into View/Sheet set by sheet number

**URL:** <https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [February 25, 2022, 11:06am UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723 "2022-02-25T11:06:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayden](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jayden](https://forum.dynamobim.com/u/Jayden)\
**Post date:** [February 25, 2022, 11:06am UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/1 "2022-02-25T11:06:08Z")

</div>

Are there any way to add list of sheets into view/sheet set using dynamo?  
As in an image I need to add below list into the selected set.

 ![000](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cfb54fe2f84fc7b33bbbbe4d67a40f66329c0f97.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:** [February 25, 2022, 5:40pm UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/2 "2022-02-25T17:40:41Z")

</div>

If you’re not finding a node then you’ll probably have to write your own python code.

> **[Views Property](https://www.revitapidocs.com/2020/b6c69e58-9579-9df2-6adc-8f8ce44a633c.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

Luckily, getting and setting the VewSheetSet Views is essentially the same process, so you can use the existing code from the custom node to help you out.

---

<div class="post-metadata">

**Author:** ![Jayden](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Jayden](https://forum.dynamobim.com/u/Jayden)\
**Post date:** [February 26, 2022, 4:38pm UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/4 "2022-02-26T16:38:12Z")

</div>

Thank you so much for your replying.  
Because I don’t have any knowledge of python, I would like to ask you a question.  
Is ‘Visual Basic’ in the link you provided referring to the python syntax?

---

<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 26, 2022, 9:32pm UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/5 "2022-02-26T21:32:20Z")

</div>

Hi @Jayden ,

From which package is that Custom Node? Maybe the same package also has a node to set sheets/views to a sheet/viewset.

Maybe you could also search your querry on the forum, I doubt you are the first who would want this functionality 🙂

If both don’t result in any further information/ solutions I think you would have to look into it yourself, like Jacob said.

---

<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 28, 2022, 2:08pm UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/6 "2022-02-28T14:08:15Z")

</div>

> [@Jayden](#):
>
> Is ‘Visual Basic’ in the link you provided referring to the python syntax?

No. RevitAPIDocs unfortunately only shows C#, VB, and C++. You’ll have to “infer” the Python syntax from those options, but Python is pretty straight forward so it’s not too hard to do once you have a little familiarity with it.

I’d recommend spending a little time learning Python and giving it a shot. It’s well worth it and, as I mentioned, the Get/Set properties are the same so you can look at the original code for getting the views and use that to set the views.

---

<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:** [February 28, 2022, 5:41pm UTC](https://forum.dynamobim.com/t/add-sheet-into-view-sheet-set-by-sheet-number/73723/7 "2022-02-28T17:41:14Z")

</div>

@Jayden try this, if you are updating the same Set over and over, you need to run the script twice to refresh the updated Set:

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