# Place Legends/Views on Sheets by coordinates

**URL:** <https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826>\
**Category:** Revit\
**Tags:** revit, dynamo, views\
**Created:** [January 3, 2018, 10:23am UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826 "2018-01-03T10:23:28Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![and6rea](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@and6rea](https://forum.dynamobim.com/u/and6rea)\
**Post date:** [January 3, 2018, 10:23am UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/1 "2018-01-03T10:23:28Z")

</div>

Hello,

You can find attached our workflow, which we created with all of your helpful comments.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/7/67be6009a4a631b7de46997b1b2ed0e4a3f97c8b.png)  
Dynamo automatically place every legend using the coordinates we are giving as the legend center coordinates.  
 ![Capture2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/0/6078c31be3130ef167fbe9329eb57e949061a50b.png)  
We are trying to insert some node so Dynamo can understand that the given coordinates are from the upper left corner from the legend (where the title is), but we can’t find such packages.

**Edit:** [Sheet-LegendPlacerBySheetNumber.dyn](https://forum.dynamobim.com/uploads/short-url/dKKSK71YYVZoN6huSNjseekoaOI.dyn) (12.5 KB)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Joe.ashton](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@Joe.ashton](https://forum.dynamobim.com/u/Joe.ashton)\
**Post date:** [January 3, 2018, 4:54pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/2 "2018-01-03T16:54:33Z")

</div>

Hmhm, as far as I know, the location of an element is always set to the centre.

I’ve had a similar issue, the way I got around it is getting the dimensions of the element and then take away/minus half the of X and Y value from the coordinates; This will make it so it is the “position” from the corner.

E.g A 10x10 box from the centre positioned at 10,10,0 is the same as a 10x10 box positioned at the right-hand corner located at 5,5,0.

Hope that Helps!

---

<div class="post-metadata">

**Author:** ![lsmm](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lsmm](https://forum.dynamobim.com/u/lsmm)\
**Post date:** [January 3, 2018, 8:23pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/3 "2018-01-03T20:23:52Z")

</div>

Perhaps you could use the BoxOutline property of the viewport? Then as Joe proposed, calculate the center position based on the maximum and minimum points of the outline.

I don’t know if this achieves what you’re looking for, but I have attached a modified version of your script.

[FORUM\_LegendPlacerBySheetNumber.dyn](https://forum.dynamobim.com/uploads/short-url/kqvW7KC9ySLX3iWT755Qqiz9FhN.dyn) (11.6 KB)

---

<div class="post-metadata">

**Author:** ![Lorea](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@Lorea](https://forum.dynamobim.com/u/Lorea)\
**Post date:** [January 30, 2018, 3:50pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/4 "2018-01-30T15:50:31Z")

</div>

Hi there,

Probably very easy, but I´m new to Dynamo and trying to place a Legend into some sheets (with correlative number) at the same time. What I´ve tried seems not to be working…Any tips for that?

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

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![Tom\_James](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/tom_james/32/22277_2.png) [@Tom\_James](https://forum.dynamobim.com/u/Tom_James)\
**Post date:** [January 30, 2018, 3:57pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/5 "2018-01-30T15:57:09Z")

</div>

There’s an indepth discussion here:

> [@Place multiple views on multiple sheets by coordinates](https://forum.dynamobim.com/t/place-multiple-views-on-multiple-sheets-by-coordinates/12883/2):
>
> Hi @Kotey.Nikoi, I have added some new functionality to the Node. It will now place multiple views on multiple sheets. I have also bundled in another node for the preview of the locations on sheet. Here is a quick demo in action… The input for the sheets needs to be a single list of sheets (no nesting) and the inputs for views and locations must be a list of lists. For example:- Sheets: sheet1 sheet2 Views: List0: view1 view2 List1: view1 view2 view3 Locations: List0: po…

@Daniel_Woodcock1 has done some great work with this.

---

<div class="post-metadata">

**Author:** ![Lorea](https://avatars.discourse-cdn.com/v4/letter/l/8c91f0/32.png) [@Lorea](https://forum.dynamobim.com/u/Lorea)\
**Post date:** [January 30, 2018, 4:26pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/6 "2018-01-30T16:26:08Z")

</div>

Thanks for the quick response! To be honest, the routine seems to be very good, but I can´t get to understand how to use it ☹

---

<div class="post-metadata">

**Author:** ![Matthew.Latham](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Matthew.Latham](https://forum.dynamobim.com/u/Matthew.Latham)\
**Post date:** [August 1, 2018, 2:34pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/7 "2018-08-01T14:34:54Z")

</div>

Hi Ismm this is create im having one issue though and that is the y coordinates do not move the legend up or down no matter what value you add. is this something to do with the code?

---

<div class="post-metadata">

**Author:** ![brittany.ewing](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@brittany.ewing](https://forum.dynamobim.com/u/brittany.ewing)\
**Post date:** [August 3, 2018, 7:17pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/8 "2018-08-03T19:17:58Z")

</div>

Hi Matthew,

I came across the same issue and found solution.  
Right click the “Place On Sheets (py)” node and select “Edit…”  
Line 37 reads:  
Ycenter = (maxp.X+minp.X)/2-((maxp.Y-minp.Y)/2)  
you need to change that line to read:  
Ycenter = (maxp.X+minp.Y)/2-((maxp.Y-minp.Y)/2)

There was a typo.  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![Matthew.Latham](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Matthew.Latham](https://forum.dynamobim.com/u/Matthew.Latham)\
**Post date:** [August 6, 2018, 6:40am UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/9 "2018-08-06T06:40:47Z")

</div>

Thank you Brittany for pointing me in the right place. i noticed when i changed to the one you have put when i changed the x value it also moved the legend in the y axis even if set to 0. So amended it to

Ycenter = (maxp.Y+minp.Y)/2-((maxp.Y-minp.Y)/2)

and seems to work. Thanks again for your help 🙂

---

<div class="post-metadata">

**Author:** ![maya.mouss](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@maya.mouss](https://forum.dynamobim.com/u/maya.mouss)\
**Post date:** [March 15, 2019, 3:42pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/10 "2019-03-15T15:42:00Z")

</div>

I’m trying the script provided in this topic to place a legend on multiple sheets, but when I run it, nothing happens in Revit.  
Can someone please help.

Thanks!

---

<div class="post-metadata">

**Author:** ![hamishfrankland](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hamishfrankland](https://forum.dynamobim.com/u/hamishfrankland)\
**Post date:** [May 23, 2019, 1:56pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/11 "2019-05-23T13:56:32Z")

</div>

The script is working great for me except it doesnt place the view at the coordinates I inputted, it places that at 30.49 times the coordinates.

Does anyone know what might be causing this?

Thanks so much in advance

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [May 24, 2019, 1:46am UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/12 "2019-05-24T01:46:01Z")

</div>

It’s probably a units issue. Are you using Metric and/or the graph your using is converting it.  
Check here for alternatives.

> [@Place Legends on Multiple Sheets with Template Legend](https://forum.dynamobim.com/t/place-legends-on-multiple-sheets-with-template-legend/25632):
>
> I was asked to share the script I put together for placing Revit Legends on multiple sheets at the same location. Here is a screen shot: Download the script below: [Legend.dyn](https://forum.dynamobim.com/uploads/short-url/8xqSyG4noUtGM1cqDFdTKmpznjd.dyn) (31.4 KB) And if you are curious, you can also check this one out for doing the same thing with Schedules. Screenshot: Graph: [Schedule.dyn](https://forum.dynamobim.com/uploads/short-url/e9kh5u7hI2Q1L5DTVZnur6jH5wY.dyn) (26.1 KB) I am open for suggestions to make it better if you are inclined. Packages used include: archilab, Rhythm, and Data-Shapes

---

<div class="post-metadata">

**Author:** ![nuria.estivillmanzan](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nuria.estivillmanzan](https://forum.dynamobim.com/u/nuria.estivillmanzan)\
**Post date:** [July 13, 2020, 2:43pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/13 "2020-07-13T14:43:26Z")

</div>

Hi guys,

I would like to place few views in a sheet. I am trying the node ‘Tool.PlaceViewsOnSheets’ but it results in null (see image below). Any suggestions of how to do it?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/3/b33f97f261cea9f9533331fd36713373f6f8b0c9.png)  
Many thanks,  
Nuria

---

<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:** [July 14, 2020, 6:55am UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/14 "2020-07-14T06:55:31Z")

</div>

Are all you lists of equal length?

A possible solution could be just putting a _List Create_ node before _Sheets List_ and _Views List_.  
In example _Your Views_ \>\>\> _List Create_ \>\>\> _Views List_ (in the _Tool.PLaceViewsOnSheet_s node).

---

<div class="post-metadata">

**Author:** ![nuria.estivillmanzan](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nuria.estivillmanzan](https://forum.dynamobim.com/u/nuria.estivillmanzan)\
**Post date:** [July 14, 2020, 3:22pm UTC](https://forum.dynamobim.com/t/place-legends-views-on-sheets-by-coordinates/17826/15 "2020-07-14T15:22:05Z")

</div>

Hi, thanks for that. Yeah I had to play with the lists levels to pick all the lists in the same levels. Thanks again 🙂
