# AutoCAD Block to Revit Familie

**URL:** <https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100>\
**Category:** Revit\
**Created:** [June 26, 2018, 1:40pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100 "2018-06-26T13:40:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [June 26, 2018, 1:40pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/1 "2018-06-26T13:40:24Z")

</div>

Hello fellow communitie users,

I would like to create a Revit Family on every point of a block (selected) form a linked DWG. I have seen two topics like it but i don’t know how to implement it.

From: @Azubike_Ononye

> [@CAD Block Insertion Point to Family location](https://forum.dynamobim.com/t/cad-block-insertion-point-to-family-location/13478):
>
> Hey guys - I am looking to retrieve the insertion point of a block in an active AutoCAD file and use that to locate revit families. These are nodes from the LinkDWG package. As seen from the image below, the node within the green box works perfectly showing the layers and the layer colors. However, for some reason the node within the blue box isn’t reading CAD file. I have also attached the python file driving the ActiveX.GetCOMObjects node. OR is there an alternate way of getting insertion poin…

The shared package off the post above: [https://drive.google.com/file/d/0B5TaXAsk-Z8kRE5ZNE1NUjNCQ0VXUkRPajJzZ09YTFdKWUpn/view](https://drive.google.com/file/d/0B5TaXAsk-Z8kRE5ZNE1NUjNCQ0VXUkRPajJzZ09YTFdKWUpn/view)

From: @Manel_Fernandez & @john_pierson

> [@CAD Block location](https://forum.dynamobim.com/t/cad-block-location/22538):
>
> Hi there, What I’m trying to achive is to get location of some Cad blocks from a Cad file inserted as a link in Revit. Right now, I’m using an Excel file got from AutoCad and then I use dynamo to insert a family instance by point. I would like sth without using Excel, because those Cad blocks have geometry parameters with the location, so if I could read them, it’s gonna be faster than create an Excel file and… I’ve tried with ActiveX package ans DynamoCad package, but nothing works. Any Id…

Tanks a lot in advance!

---

<div class="post-metadata">

**Author:** ![Myr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/myr/32/49717_2.png) [@Myr](https://forum.dynamobim.com/u/Myr)\
**Post date:** [June 26, 2018, 2:20pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/2 "2018-06-26T14:20:58Z")

</div>

Hi you just need to import your CAD and explode it partially, use @john_pierson’s code to get Points.

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [July 3, 2018, 6:15am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/3 "2018-07-03T06:15:32Z")

</div>

If you explode it will give a lot off pollution and slow down the moddel but thanks a lot for the tip 😄

---

<div class="post-metadata">

**Author:** ![Myr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/myr/32/49717_2.png) [@Myr](https://forum.dynamobim.com/u/Myr)\
**Post date:** [July 3, 2018, 6:35am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/4 "2018-07-03T06:35:55Z")

</div>

well just add another piece of code deleting all those mess after running the script that works well to me 🙂

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [July 3, 2018, 6:51am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/5 "2018-07-03T06:51:53Z")

</div>

Could you share your dyn file? thx in advance!

---

<div class="post-metadata">

**Author:** ![ngtavu](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@ngtavu](https://forum.dynamobim.com/u/ngtavu)\
**Post date:** [August 1, 2018, 4:32am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/6 "2018-08-01T04:32:48Z")

</div>

> [@SPARTAN](#):
>
> every point of a block (selected) form a linked DWG. I have seen two topics like it but i don’t know how to implement it.

Can you share it to me plz  
email me [tv2803@gmail.com](mailto:tv2803@gmail.com)

---

<div class="post-metadata">

**Author:** ![gokhan08torun](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gokhan08torun](https://forum.dynamobim.com/u/gokhan08torun)\
**Post date:** [September 15, 2018, 7:16am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/7 "2018-09-15T07:16:20Z")

</div>

Hi nguvu  
Could you share your dyn file? thx in advance!  
I work fo MagiCAD Turkey. If there is anything i can help you with do not hesitate to ask me. I ll be more than happy to help you.

Sincerely yours,  
Gokhan Torun

[https://www.youtube.com/channel/UCip1Y4eaP9FS1xIG-whYkSw/featured?disable\_polymer=1](https://www.youtube.com/channel/UCip1Y4eaP9FS1xIG-whYkSw/featured?disable_polymer=1)

---

<div class="post-metadata">

**Author:** ![pipita17](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@pipita17](https://forum.dynamobim.com/u/pipita17)\
**Post date:** [March 27, 2019, 2:31pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/8 "2019-03-27T14:31:26Z")

</div>

hi myr, which code are you suggesting to use here?

---

<div class="post-metadata">

**Author:** ![Myr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/myr/32/49717_2.png) [@Myr](https://forum.dynamobim.com/u/Myr)\
**Post date:** [March 28, 2019, 3:29am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/9 "2019-03-28T03:29:40Z")

</div>

> [@CAD Block location](https://forum.dynamobim.com/t/cad-block-location/22538/5):
>
> What type of blocks are they, can you post a copy?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [January 18, 2021, 1:11pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/10 "2021-01-18T13:11:00Z")

</div>

A custom node is now available: “CAD Block”.  
It is now easier to batch place familyInstances at each block insertion point from a linked DWG.  
(without exploding the DWG or \_DATAEXTRACTION from Autocad or reading AutoCAD file with ActiveX)

 ![FamilyInstances from CAD Link](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/669bcbf21c9818d30edc518c83e4e68c933f79c1.gif)

 ![FamilyInstances from CAD Link2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/a/fa654964560fe4465b32fdb3b4bc0d255950d584.png)

---

<div class="post-metadata">

**Author:** ![paris](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paris/32/144289_2.png) [@paris](https://forum.dynamobim.com/u/paris)\
**Post date:** [January 20, 2021, 10:57am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/11 "2021-01-20T10:57:26Z")

</div>

Hi @Alban_de_Chasteigner it’s powerful, thank you very much for you python node. Do you have any node to get also the dynamo geometry?  
Cheers

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [January 20, 2021, 1:05pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/12 "2021-01-20T13:05:52Z")

</div>

Hi Stefano,

This is possible to get the geometry. There is already the _CAD.CurvesFromCADLayers_ node of BimorphNodes package.  
 ![CAD to curves](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cd480f5212f3415ea65ee82cbbb819ee2be9e065.png)

What kind of geometry do you need ?

---

<div class="post-metadata">

**Author:** ![paris](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paris/32/144289_2.png) [@paris](https://forum.dynamobim.com/u/paris)\
**Post date:** [January 20, 2021, 4:39pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/13 "2021-01-20T16:39:12Z")

</div>

Hi @Alban_de_Chasteigner ,thanks for your answer, I would like to get the Geometry from the link or imported DWG (into project or family environment) like the output of “Element.Geometry”, “Element.Solids” or “ImportGeometriesByCOM” (“Mesh” for example)  
Cheers

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [January 20, 2021, 7:49pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/14 "2021-01-20T19:49:57Z")

</div>

The _Element.Geometry_ node already does that :

 ![Geometry.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cda0eb1f3fc73b648f0355c579826864454b60a2.jpeg)

---

<div class="post-metadata">

**Author:** ![paris](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paris/32/144289_2.png) [@paris](https://forum.dynamobim.com/u/paris)\
**Post date:** [January 21, 2021, 10:22am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/15 "2021-01-21T10:22:03Z")

</div>

Hi @Alban_de_Chasteigner , thanks for your answer, yes of course but for more complex geometry (3D DWG exported from others mechanicals programs like SolidWorks, Solid Edge, Catia, Inventor) it fails or dynamo crash, for this I’m looking for another method to get the external geometry surface into RFA or RVT (python or maybe with Grasshopper for Revit) and work in background, there are some workaround and plug-ins (for example the method “shrinkwrap”) but it’s more time consuming for thousant families.  
Thanks for your efforts  
Cheers

---

<div class="post-metadata">

**Author:** ![yaella](https://avatars.discourse-cdn.com/v4/letter/y/278dde/32.png) [@yaella](https://forum.dynamobim.com/u/yaella)\
**Post date:** [August 3, 2021, 9:46am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/16 "2021-08-03T09:46:35Z")

</div>

Hi @Alban_de_Chasteigner - I got an error on Family,ByName and FamilyInstance.ByPointAndLevel - can you help me figure out how to do it properly? Thank you!

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

---

<div class="post-metadata">

**Author:** ![rgoold18\_SSA](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rgoold18\_SSA](https://forum.dynamobim.com/u/rgoold18_SSA)\
**Post date:** [August 3, 2021, 11:54pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/17 "2021-08-03T23:54:36Z")

</div>

Hi @Alban_de_Chasteigner -  
The Origin Point output of your CAD Block node is not reading the block insertion point in my case, but instead is reading an origin point in the CAD file that is the same for each block instance. So, if I were to run the script to place family instances for each block, then they would layer multiple instances onto the same origin. I have tried using the LinkDWG2 nodes for BlockProperty to acquire the insertion point, but cannot seem to figure out why I am getting “null” values for these nodes. Any advice or help that you can share would be greatly appreciated.  
Thanks, Ryan

 ![Forum help_CAD Block to Family Instance](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09358564cfddb8388ac4abd365a47af9f19982a3.jpeg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 4, 2021, 9:00am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/18 "2021-08-04T09:00:43Z")

</div>

Hi @yaella,

Welcome to the Dynamo forum.  
It is not possible to help you without viewing the warning messages and previews under the nodes. Apparently, your families are not named exactly like Autocad blocks since they are not found by the _Family.ByName_ node.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [August 4, 2021, 9:02am UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/19 "2021-08-04T09:02:49Z")

</div>

Hi @rgoold18_SSA,

Welcome to the Dynamo forum.  
It’s interesting. You would have to share your DWG file (possible by private message) so that I understand its structure and the problem.

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [August 4, 2021, 8:19pm UTC](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100/20 "2021-08-04T20:19:04Z")

</div>

You can export those type of files as SAT files, which are made of solids and or surfaces that can be read by basic nodes of Dynamo. I did in some occasions with STL, OBJ file format, like a mesh file to open in Dynamo.

[Next page](https://forum.dynamobim.com/t/autocad-block-to-revit-familie/23100.md?page=2)
