# Recover text AUTOCAD

**URL:** <https://forum.dynamobim.com/t/recover-text-autocad/6176>\
**Category:** Revit\
**Created:** [September 14, 2016, 5:24am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176 "2016-09-14T05:24:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 14, 2016, 5:25am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/1 "2016-09-14T05:25:00Z")

</div>

Recover text AUTOCAD

Hello,  
My goal is to simplify the design of a model following an AutoCAD DWG plan.  
My question is on the way to retrieve the names and number of premises for parts.  
Do you have a method with DYNAMO?

1. I thought Import texts in the layout.
2. The text is in a room.
3. With Dynamo Retrieve the text value for each piece.
4. Leave this value to the room name  
DYNAMO he recognizes the text?

French  
Bonjour,  
Mon but est de simplifier le dessin d’une maquette suivant un plan AUTOCAD DWG.  
Ma question porte sur le moyen de récupérer les noms et numéro des locaux pour les pièces.  
Avez-vous une méthode avec DYNAMO ?

1. Je pensais Importer les textes dans la maquette.
2. Le texte serait dans une pièce.
3. Avec Dynamo Récupérer la valeur du texte pour chaque pièce.
4. Donner cette valeur au nom de la pièce  
DYNAMO reconnait-il le texte ?

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 14, 2016, 7:15am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/2 "2016-09-14T07:15:25Z")

</div>

Hello Alain,

I made a workflow some time ago that might be helpful. It doesn’t do exactly what you need, but maybe it can help you start.  
[https://youtu.be/IjbnDhITkWE](https://youtu.be/IjbnDhITkWE)  
[Room creation by dwg txt import.dyn](https://forum.dynamobim.com/uploads/short-url/8EaCdEj3QfLtQeCWkxA4RJqjqNH.dyn) (54.4 KB)

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 14, 2016, 12:28pm UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/3 "2016-09-14T12:28:10Z")

</div>

Hello,

Thank you for your reply. This must match.  
There is a problem in the beginning with the “collection” of the types of text  
“Type Name” does not return a value?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/4/4c8d07f3280152bc0b00e973af51912cf7a66965.png)

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 14, 2016, 2:39pm UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/4 "2016-09-14T14:39:44Z")

</div>

You probably have to translate “Type Name” to its french counterpart, but I don’t know what that is. You can use the node Element.Parameters to check the available parameters on an element.

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 15, 2016, 6:11am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/5 "2016-09-15T06:11:08Z")

</div>

Indeed, the problem of “translation”  
But it does not find the intersection to create the pieces.  
Must adapt to different values depending on the project?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/d/d656274bca5640a1acf9b84478cabdae5a71612a.png)

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 15, 2016, 7:20am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/6 "2016-09-15T07:20:12Z")

</div>

Sorry, it seems I sent you a version with a lot of garbage nodes in it… anyway if you remove a few nodes:

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

and connect the points directly to the CreateRoom node then you’ll probably create some rooms.

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 15, 2016, 8:50am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/7 "2016-09-15T08:50:15Z")

</div>

It’s good for the number of the ROOM and the creation of the ROOM, but not for the name

Have you done other routine for creating a model for AUTOCAD plan?

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 15, 2016, 10:59am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/8 "2016-09-15T10:59:23Z")

</div>

I simplify the code for the name of the room, and his works.  
Good or bad idea ?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/4/4f214ca4c1894b310a7cefde46a8e7003f179f61.png)

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 15, 2016, 11:03am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/9 "2016-09-15T11:03:55Z")

</div>

I can’t really see the name of the nodes you’ve added, but if it gets you the names you want then I guess it’s a good idea 🙂  
Every project will require a different approach so I can’t really say what might work for you.

---

<div class="post-metadata">

**Author:** ![Alain\_Hamel](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@Alain\_Hamel](https://forum.dynamobim.com/u/Alain_Hamel)\
**Post date:** [September 15, 2016, 11:25am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/10 "2016-09-15T11:25:24Z")

</div>

OK, thank you for your help.

---

<div class="post-metadata">

**Author:** ![l.pongsathorn](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@l.pongsathorn](https://forum.dynamobim.com/u/l.pongsathorn)\
**Post date:** [May 29, 2017, 9:41am UTC](https://forum.dynamobim.com/t/recover-text-autocad/6176/11 "2017-05-29T09:41:01Z")

</div>

Hi,

I need someone help, I try to run “Room cration by dwg txt import.dyn” all success no warning but program not create room for me anyone have idea?

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