# Views sheet number value not showing

**URL:** <https://forum.dynamobim.com/t/views-sheet-number-value-not-showing/79269>\
**Category:** Uncategorized\
**Created:** [July 29, 2022, 6:18am UTC](https://forum.dynamobim.com/t/views-sheet-number-value-not-showing/79269 "2022-07-29T06:18:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [July 29, 2022, 9:38am UTC](https://forum.dynamobim.com/t/views-sheet-number-value-not-showing/79269/10 "2022-07-29T09:38:09Z")

</div>

Sorry I think I know what’s happening! The ReferenceCalloutsView node is getting the the main view. Not the the split up dependent view the reference callout is in. Would anyone know how to fix that?

For instance its getting  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ec191439cd256e20b3f38e69b0dcdf501af26cc9.png)  
But it should be getting one of these two views, whichever the reference callout is in  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1a203def937c537de83f19d86ada826cc0357298.png)

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

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)

def GetOwnerView(item):
	if hasattr(item, "OwnerViewId"): return item.Document.GetElement(item.OwnerViewId)
	else: return None

items = UnwrapElement(IN[0])

if isinstance(IN[0], list): OUT = [GetOwnerView(x) for x in items]
else: OUT = GetOwnerView(items)

```

@Ewan_Opie simple fix by any chance? Had covid this week so only just now been feeling ok to dynamo again 😅 still need to try out your tag all views node

maybe something here

> [@Python Script - Function](https://forum.dynamobim.com/t/python-script-function/44005/9):
>
> I’ve added the flatten function from @Kulkul The last line takes every item of your list of views and counts it. Then it takes every item of your revision list and multiplies it by that count. Tip! Never ever ever use drop down menus in your Script. So instead of node Categories use Category.ByName. You can read [here](https://www.linkedin.com/posts/alexander-berg-b5b77b93_programming-dynamo-python-activity-6603260968413863936-hqjg) why exactly it’s not a good idea and my simple solution to resolve it. import clr clr.AddReference("RevitAPI") from Autodesk.Revit.DB import \* clr.AddReference("RevitNodes") imp…

---

_[View the full topic](https://forum.dynamobim.com/t/views-sheet-number-value-not-showing/79269)._
