# View or sheet an element is on?

**URL:** <https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738>\
**Category:** Uncategorized\
**Created:** [June 27, 2016, 7:01pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738 "2016-06-27T19:01:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mix](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mix](https://forum.dynamobim.com/u/mix)\
**Post date:** [June 27, 2016, 7:01pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/1 "2016-06-27T19:01:55Z")

</div>

Is there a way to quickly list all the views and/or sheets an element or family is located on? Thanks!

---

<div class="post-metadata">

**Author:** ![Alisder\_Brown](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alisder_brown/32/14995_2.png) [@Alisder\_Brown](https://forum.dynamobim.com/u/Alisder_Brown)\
**Post date:** [June 27, 2016, 7:18pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/2 "2016-06-27T19:18:28Z")

</div>

@mix  
Yes there are a couple of ways i have seen.  
Could you post up what you have tried so far and where you are getting stuck to see what direction to point you in.

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [June 27, 2016, 7:31pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/3 "2016-06-27T19:31:59Z")

</div>

Have a look here: [http://jbdynamo.blogspot.no/2015/08/ammo-which-sheets-are-my-elements-on.html?m=1](http://jbdynamo.blogspot.no/2015/08/ammo-which-sheets-are-my-elements-on.html?m=1)

---

<div class="post-metadata">

**Author:** ![mix](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mix](https://forum.dynamobim.com/u/mix)\
**Post date:** [June 29, 2016, 6:49pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/4 "2016-06-29T18:49:41Z")

</div>

@jostein_olsen  
Ok those seem great but neither one is working, here is my latest fail:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/bcbb53622415ca5d06692734aaa47afae669c618.png)

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [June 29, 2016, 7:51pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/5 "2016-06-29T19:51:30Z")

</div>

Hmm that’s odd. Seems to work on my end. I’ve created a project parameter which is put on all elements in the model first and then run the script as shown below.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/12af0aa9396de09b9faa1f84d57615a57d057a59.png)

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/1/1595a8f9c0e88c3832db37cb672246f0dfc82d3d.png)

```
def ElOnSht(shts,func)
{
sNrNa=shts.SheetNumber+"-"+shts.Name;
sv=shts.Views;
elems=Flatten(__Map(func,sv));
oldpar=elems.GetParameterValueByName("On Sheet");
newpar=oldpar+sNrNa+",";
elems.SetParameterByName("On Sheet",newpar);
return=elems;
};
```

---

<div class="post-metadata">

**Author:** ![mix](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mix](https://forum.dynamobim.com/u/mix)\
**Post date:** [June 29, 2016, 11:15pm UTC](https://forum.dynamobim.com/t/view-or-sheet-an-element-is-on/4738/6 "2016-06-29T23:15:24Z")

</div>

Ok for some reason it works now when I tried it in a different model. Idk why though… but for some reason it is repeating some sheets a bunch of times. Is there a way to limit it to just on listing per sheet?  
Is there a way to do this to find which sheet a room is on by typing in the room number?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b288532afb9625c2deb5fea53888fa159c2f3e2a.png)
