# Place component by coordinates

**URL:** <https://forum.dynamobim.com/t/place-component-by-coordinates/47622>\
**Category:** Revit\
**Tags:** revit\
**Created:** [March 4, 2020, 11:37am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622 "2020-03-04T11:37:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 4, 2020, 11:37am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/1 "2020-03-04T11:37:48Z")

</div>

Hi there all

Sorry if this question has been asked. but here goes. I am trying to place some familie components by specific coordinates in my model, but when I run my graph, it inserts the component somewhere else…? Can someone please help?

So first, here is my graph:

 ![Koordinatbøvl](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e99acb18dd1c0a3bc051760dce9548d2a7b6c3f8.png)

this is what I have in my Excel sheet (coordinates) comes from another aplication:  
 ![Koordinatbøvl 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/6/86592649db446726bb32411d6f4aa74d5e36dab7.png)

this is the room where it is supposed to be inserted:

 ![Koordinatbøvl 3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/73dc08606f7e9117d708daa7548e1cba29e34803.png)

This is where it dynamo actually inserts it…?

 ![Koordinatbøvl 4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/8/38b1b47fa2cfba0e09955be618360de70a73ec5e.png)

Any suggestions, and sorry if this is a question that has been answered before…

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [March 4, 2020, 11:54am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/2 "2020-03-04T11:54:50Z")

</div>

If this coordinates are world coordinates, you have to convert them to the local. Basically Coordinate plus project base point. Do that for X,Y and Z.

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 4, 2020, 12:08pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/3 "2020-03-04T12:08:08Z")

</div>

Hi Deniz

Yes, these are world coordinates, but so should the model be?  
so how do I convert them, as you suggest?

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [March 4, 2020, 12:10pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/4 "2020-03-04T12:10:28Z")

</div>

![coord](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/617fc3e014f6474ad7cc251cecf213f48b406422.png)

The first node is from Genius Loci package. Then you should point from excel plus base point.

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 4, 2020, 1:36pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/5 "2020-03-04T13:36:16Z")

</div>

hi again Deniz

I tried what you said:

 ![Koordinatbøvl 5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/8/c844f7ba67d7352dca7ab49113364e5060403e01.png)

But I get the error, that my number is to lage for the project?

 ![Koordinatbøvl 6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b22e9bf4d41e759ffc74addb54d39bd43e53a5e.png)

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [March 4, 2020, 2:04pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/6 "2020-03-04T14:04:44Z")

</div>

Hi, I am really sorry… in my example I had to sum the coordinates but in your case please do like that:

World coordinates minus project base point.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 5, 2020, 12:12am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/7 "2020-03-05T00:12:38Z")

</div>

What are your units? Even in MM that is 2.2x the length of the Panama Canal…

---

<div class="post-metadata">

**Author:** ![mrkhan4u.314](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mrkhan4u.314](https://forum.dynamobim.com/u/mrkhan4u.314)\
**Post date:** [March 5, 2020, 5:11am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/8 "2020-03-05T05:11:09Z")

</div>

Hi guys, I am also struggling with a similar issue but my problem is with the angle of rotation. I tried to place the families with true north unfortunately my script is not working. Look at the script attached

 ![2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/801004428fddd494556329b460dc76824a04d890.png)

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 5, 2020, 8:19am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/9 "2020-03-05T08:19:33Z")

</div>

Hi there Jacob

Which one of the coordinates are you asking for? the “Active project location” or the data imported from Excel?

My units are MM. My project uses the “origin to origin” method, does that have an impact on the long coordinates?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 5, 2020, 8:53am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/10 "2020-03-05T08:53:05Z")

</div>

193,000,000 mm is about 120 miles. Do you really have objects which are 120 miles from the hard coded origin of the file? Anything over 22 miles from the hard coded internal origin (the 0,0,0 point) is an issue for Revit’s geometry engine.

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 5, 2020, 1:43pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/11 "2020-03-05T13:43:16Z")

</div>

Sorry, Im not that good at the coordinates in revit. But no, my project base point is not that far from my model, as you can see here:

The other arrow, is where the object should be inserted.

 ![Koordinatbøvl 7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e97130129d3f834ca5fc64ecd547cfd7256f443f.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 5, 2020, 3:54pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/12 "2020-03-05T15:54:55Z")

</div>

Project base point is not the internal origin.

Use a family instance by point node to place a desk at the point 0,0,0, and see where that is in 3D space.

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [March 5, 2020, 8:57pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/13 "2020-03-05T20:57:29Z")

</div>

or turn it on in visibility graphics (need Revit 2020.2)

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

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 6, 2020, 1:05pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/14 "2020-03-06T13:05:31Z")

</div>

Hi again Jacob

I tried inserting an object at 0,0,0 as you said, and it turns out, that my origin and my project base point are at det same place the red arrow:

 ![Koordinatbøvl 8](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/8/48edcf60d0992b7f719e1ac72eab78eebba0d7a1.png)

The blue arrow, was me checking if the coordinates from the Excel file was correct, which they were (done in a seperat file).

---

<div class="post-metadata">

**Author:** ![robertawalker](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@robertawalker](https://forum.dynamobim.com/u/robertawalker)\
**Post date:** [March 6, 2020, 4:33pm UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/15 "2020-03-06T16:33:44Z")

</div>

if you put an unconnected node into you graph

- Revit/Elements/Coordinates/coordinates base point -  
this will report the origin of the internal coordsystem relative to the project base point  
the internal coordsystem is oriented in the same x,y as the project base point  
it is the internal coords which are used to locate objects.  
all you need to be able to do then is translate from your world co-ords to the internal co-ords  
(I think)

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 9, 2020, 8:23am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/16 "2020-03-09T08:23:11Z")

</div>

Hi there Deniz

I have tried working with your suggestion, on converting my real world coordinates to Revit local/ relative ones.

When I minus the two coordnates from each other, I get the same measured distance as where the component should be.  
But it still does not insert the object here? Does the “insert by point” node, include project rotation?

 ![Koordinatbøvl 9](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/559143020549ab023f019eecd2715955db6f6fda.png)

 ![Koordinatbøvl 10](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/1/01bab2482a2596a288ce103be93a343349a8502b.png)

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [March 9, 2020, 8:44am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/17 "2020-03-09T08:44:28Z")

</div>

I don’t think so, can you after that use FamilyInstance.SetRotation and as an angle “0”?

---

<div class="post-metadata">

**Author:** ![stillgotme](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@stillgotme](https://forum.dynamobim.com/u/stillgotme)\
**Post date:** [March 9, 2020, 10:11am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/18 "2020-03-09T10:11:35Z")

</div>

where do you get the coordinates from? from autocad file? from which software. The best bet is to use revit’s built in transform class instead of translating your own, that is if you know the the difference in those two coordinate

---

<div class="post-metadata">

**Author:** ![Deniz\_Maral](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/deniz_maral/32/80323_2.png) [@Deniz\_Maral](https://forum.dynamobim.com/u/Deniz_Maral)\
**Post date:** [March 9, 2020, 10:24am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/19 "2020-03-09T10:24:15Z")

</div>

and what kind of component is that? Could you check its null point?

---

<div class="post-metadata">

**Author:** ![bjkris](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bjkris](https://forum.dynamobim.com/u/bjkris)\
**Post date:** [March 9, 2020, 11:58am UTC](https://forum.dynamobim.com/t/place-component-by-coordinates/47622/20 "2020-03-09T11:58:03Z")

</div>

Hi “Stillgotme”

The coordinates comes from our building inspection program, which gets the coordinates from its placement in the Revit files. How do you suggest that I translate these coordinates to revits placement system?

@Deniz_Maral - the components null point, is at det dead center of the object.

[Next page](https://forum.dynamobim.com/t/place-component-by-coordinates/47622.md?page=2)
