# Placing family on the spot from dwg file

**URL:** <https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699>\
**Category:** Revit\
**Created:** [January 7, 2017, 11:00pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699 "2017-01-07T23:00:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnandj](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@adnandj](https://forum.dynamobim.com/u/adnandj)\
**Post date:** [January 7, 2017, 11:00pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/1 "2017-01-07T23:00:43Z")

</div>

Hello,

I am pretty new with Dynamo…

My first bigger problem that I can not find solution is  
PLACING FAMILY IN REVIT (with Dynamo). FAMILIES MUST HAVE SAME COORDINATE LIKE BLOCK IN DWG FILE.  
with other words I WOULD LIKE TO REPLACE BLOCK WITH FAMILIES. IS that possible with existing nodes or I must start studing Python?

Regards,  
Adnan

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [January 7, 2017, 11:25pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/2 "2017-01-07T23:25:09Z")

</div>

Hi @adnandj ,  
you could extract the coordinates of blocs from autocad with EATTEXT command to excell then get those coordinates in dynamo and place your families with FamilyInstance.ByPoint or FamilyInstance.ByPointAndLevel … I think what is already available should be enough no need to code.

---

<div class="post-metadata">

**Author:** ![adnandj](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@adnandj](https://forum.dynamobim.com/u/adnandj)\
**Post date:** [January 13, 2017, 11:38am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/3 "2017-01-13T11:38:37Z")

</div>

Thank you very much for idea!

---

<div class="post-metadata">

**Author:** ![vpro](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@vpro](https://forum.dynamobim.com/u/vpro)\
**Post date:** [July 28, 2017, 2:20am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/4 "2017-07-28T02:20:37Z")

</div>

Hi!  
Have you succeeded with the idea?  
I came up to the same task and trying to get this done…  
Could you please share how your script works and which steps there are?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Johannes\_Meiners](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/johannes_meiners/32/9156_2.png) [@Johannes\_Meiners](https://forum.dynamobim.com/u/Johannes_Meiners)\
**Post date:** [July 28, 2017, 10:07am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/5 "2017-07-28T10:07:42Z")

</div>

EATTEXT is a great tool in autocad. Just used it the first time and got a huge excel file. I filtered the name of the block and it´s coordinates. With this info in excel I was able to place a family at the coordinates of the blocks.

 ![Deckenspiegel](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c9480f0ea52f36bd2b72ba003bc4f96034e9211.png)  
There will be a problem if the blocks ar rotated, but in my case it is ok.

Johannes

---

<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:** [July 28, 2017, 1:26pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/6 "2017-07-28T13:26:29Z")

</div>

Haven’t tried EATTEXT but DATAEXTRACTION produces a customized excel output (only the fields and elements you want are exported) which can also get the values you need.

---

<div class="post-metadata">

**Author:** ![vpro](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@vpro](https://forum.dynamobim.com/u/vpro)\
**Post date:** [August 1, 2017, 1:16am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/7 "2017-08-01T01:16:22Z")

</div>

Thanks for your replies!  
Still crunching the concept…

---

<div class="post-metadata">

**Author:** ![Willem\_Creffier](https://avatars.discourse-cdn.com/v4/letter/w/cdc98d/32.png) [@Willem\_Creffier](https://forum.dynamobim.com/u/Willem_Creffier)\
**Post date:** [May 9, 2019, 9:41pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/8 "2019-05-09T21:41:47Z")

</div>

Hello Johannes,

you can export the rotation of the block too, no?

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

it is among the paramters you can (not) filter.

Can you please share the script “Excell auslesen …bis zum Famile Plazieren” with me?

Vielen Dank!

MFG,

Willem

---

<div class="post-metadata">

**Author:** ![rgamartins](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rgamartins](https://forum.dynamobim.com/u/rgamartins)\
**Post date:** [October 31, 2019, 4:20pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/9 "2019-10-31T16:20:34Z")

</div>

Hi, @Johannes_Meiners. Used your script and worked great. Thanks… I had this same issue and your tip encouraged me to finally start using Dynamo. Thanks, again!!

In the end I even tweaked it and added a simple coordinate system transformation (just a subtraction to the x,y,z values).

---

<div class="post-metadata">

**Author:** ![rgamartins](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@rgamartins](https://forum.dynamobim.com/u/rgamartins)\
**Post date:** [October 31, 2019, 4:22pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/10 "2019-10-31T16:22:07Z")

</div>

Hi, @jacob.small, great tip. Very appropriate for this issue. First time I’ve used. Thanks.

---

<div class="post-metadata">

**Author:** ![bialmeida](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bialmeida/32/62015_2.png) [@bialmeida](https://forum.dynamobim.com/u/bialmeida)\
**Post date:** [December 11, 2019, 3:41pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/11 "2019-12-11T15:41:17Z")

</div>

Great graph, I tested here and will start using as well!

Question @Johannes_Meiners @jacob.small: In order for it to work, the Revit-Families and AutoCAD Blocks need to be identical, which includes the origin Point (0-Point), right? Cheers!

---

<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:** [December 11, 2019, 3:46pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/12 "2019-12-11T15:46:43Z")

</div>

Hello Fabiana,

yes they must have same origin point. Otherwise you will have to convert coordinate system.

---

<div class="post-metadata">

**Author:** ![bialmeida](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bialmeida/32/62015_2.png) [@bialmeida](https://forum.dynamobim.com/u/bialmeida)\
**Post date:** [December 11, 2019, 3:50pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/13 "2019-12-11T15:50:44Z")

</div>

Thanks Deniz! What do you mean with convert coordinate system? I just wonder - because we want to use this to replace MEP-Blocks we get from engineers as a dwg-file, what happens if they for some reason move the origin of their blocks - would we have to adapt our families accordinly? Thanks!

---

<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:** [December 11, 2019, 3:56pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/14 "2019-12-11T15:56:46Z")

</div>

I have generally infrastructure projects and in that projects are objects always in world coordinates. (In DWG files). Because of geometric restriction of Revit we have to use project base point to work in WCS. If you get an object from a DWG files in WCS, you will have to convert coordinate system related to project base system (basically world coordinates - project base point). If they used another origin point you will have to ask for it…

---

<div class="post-metadata">

**Author:** ![bialmeida](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bialmeida/32/62015_2.png) [@bialmeida](https://forum.dynamobim.com/u/bialmeida)\
**Post date:** [December 11, 2019, 4:23pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/15 "2019-12-11T16:23:04Z")

</div>

Thanks! There’s only one problem now with the Rotation - it seems like AutoCAD rotates ClockWise and Revit Counter ClockWise, is that possible? 🥴

---

<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:** [December 11, 2019, 4:46pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/16 "2019-12-11T16:46:13Z")

</div>

Why do you need to rotate actually?

---

<div class="post-metadata">

**Author:** ![bialmeida](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bialmeida/32/62015_2.png) [@bialmeida](https://forum.dynamobim.com/u/bialmeida)\
**Post date:** [December 11, 2019, 4:52pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/17 "2019-12-11T16:52:39Z")

</div>

we are currently working on a building which has several diagonal corridors. The familys are paralell to the walls and therefore rotated in this areas… I also noticed that, once we mirror a Family in AutoCAD, the placement in Revit doesnt work either, which makes sense but is not very practical, as we would have to double check the MEP-File every time before running the graph…

---

<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:** [December 11, 2019, 9:11pm UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/18 "2019-12-11T21:11:14Z")

</div>

> [@bialmeida](#):
>
> it seems like AutoCAD rotates ClockWise and Revit Counter ClockWise, is that possible?

Not just possible, but although my memory is foggy on this one I think it’s a correct statement that Revit rotates counter clockwise while AutoCAD (and a few other tested softwares) rotates clockwise (again my directions may be reversed - this is a memory form 3 years or so back). I recall a code block like `RevRot = 360-CadRot;` is the fix.

I do not have a why for this, other than perhaps that the rotation settings in Revit likely predate the acquisition by Autodesk and therefore it wouldn’t necessarily align except by circumstance.

---

<div class="post-metadata">

**Author:** ![jcchan1112](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jcchan1112](https://forum.dynamobim.com/u/jcchan1112)\
**Post date:** [May 7, 2020, 2:05am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/19 "2020-05-07T02:05:16Z")

</div>

Hi  
May I know ToDouble is what package ?

---

<div class="post-metadata">

**Author:** ![de.ge](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@de.ge](https://forum.dynamobim.com/u/de.ge)\
**Post date:** [May 6, 2021, 10:47am UTC](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699/20 "2021-05-06T10:47:49Z")

</div>

I also failed locating it

[Next page](https://forum.dynamobim.com/t/placing-family-on-the-spot-from-dwg-file/8699.md?page=2)
