# Finding views that spot elevation placed on

**URL:** <https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [April 17, 2024, 1:38pm UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162 "2024-04-17T13:38:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tranduytankts](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tranduytankts](https://forum.dynamobim.com/u/tranduytankts)\
**Post date:** [April 17, 2024, 1:38pm UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/1 "2024-04-17T13:38:32Z")

</div>

Hello everyone,

I am looking for the way to find out the view that spot elevation placed on. When I check its properties, likely workset parameter showing the view name. But when I use Getparametervaluebyname in Dynamo, it showing results of odd numbers.

Does anyone have an idea about this? Thank you for your support.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/301a603d9f5456a09b676ef40a0a6f2d3d73456e.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8e7d09597407cf88b57cd5d3e54274ef6e2eba6d.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:** [April 17, 2024, 1:43pm UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/2 "2024-04-17T13:43:55Z")

</div>

The workset parameter represents a workset element. The parameter returns the `ElementId` of that workset. That will not be the same as the view `ElementId`.

Instead, you can get the `OwnerView` from the spot elevation.

---

<div class="post-metadata">

**Author:** ![tranduytankts](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tranduytankts](https://forum.dynamobim.com/u/tranduytankts)\
**Post date:** [April 18, 2024, 4:19am UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/3 "2024-04-18T04:19:59Z")

</div>

Thank you for your reply, I just tried with OwnerView but it doesn’t work. Might be I am using Revit 2023 so the API is different with older version. Can you teach me how can I search for the proper parameter name? Thank you

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [April 18, 2024, 5:44am UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/4 "2024-04-18T05:44:06Z")

</div>

Try `OwnerViewId`, then `doc.GetElement(id)` for the actual element.

> **[OwnerViewId Property](https://www.revitapidocs.com/2023/174c1adf-0be8-a4b0-41f3-9e3ea1d6b1f1.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

---

<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:** [April 18, 2024, 1:27pm UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/5 "2024-04-18T13:27:31Z")

</div>

What did it do? We can’t help you if you don’t provide information on what’s happening.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 18, 2024, 1:37pm UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/6 "2024-04-18T13:37:01Z")

</div>

From the archilab Package.

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

The ‘hard’ way.

If an Element can’t be placed on a Workset, in example a Dimension, but the Element has the Workset Parameter the Parameter get the name of the View the Element is placed on.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/512d90ab8eab32bd99c0ed82383fa665df3ba198.png)

You must have to add some more Nodes if you really just want to end up with the name this way

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/523c1582f9494f6937f24f50c3d02ad7f244aead.png)

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [April 19, 2024, 8:11am UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/7 "2024-04-19T08:11:27Z")

</div>

As @bvs1982 indicated, OwnerView does work.  
And i can confirm that in R2023 it does work with either the archilab OR Clockwork node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4c361fd315d6210e1646f4baf0f63a9da3999a82.png)

---

<div class="post-metadata">

**Author:** ![tranduytankts](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tranduytankts](https://forum.dynamobim.com/u/tranduytankts)\
**Post date:** [April 19, 2024, 9:21am UTC](https://forum.dynamobim.com/t/finding-views-that-spot-elevation-placed-on/100162/8 "2024-04-19T09:21:42Z")

</div>

Yes, you are right, it does work with Clockwork and Archilab. Thank you for your support
