# 3 MText to 1 MText

**URL:** <https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533>\
**Category:** Civil 3D\
**Created:** [January 20, 2021, 2:10pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533 "2021-01-20T14:10:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![durasovartyom](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/durasovartyom/32/79195_2.png) [@durasovartyom](https://forum.dynamobim.com/u/durasovartyom)\
**Post date:** [January 20, 2021, 2:10pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/1 "2021-01-20T14:10:59Z")

</div>

Hello everyone!  
Is it possible to get one Mtext from a list of data, and not several using Dynamo?

 ![3 MText to 1 MText](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fdf42f70b80df44615c387b06e0021adf2da85f2.png)  
Data  
 ![Data](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b41519c9ca00eecee6f5a5c218cbf36eef92a82c.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 20, 2021, 4:42pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/2 "2021-01-20T16:42:18Z")

</div>

Hi @durasovartyom,

Here’s a lengthy method using the Civil 3D Toolkit. In the attached example you can see that I’m changing which original insertion point to use for the new MText.

[CombineMText.dwg](https://forum.dynamobim.com/uploads/short-url/vl4kW08dHd6j3Q9bmlyYFPCAEYH.dwg) (425.8 KB)  
[CombineMText.dyn](https://forum.dynamobim.com/uploads/short-url/spozJTvQogXoUgWVGKZuuzdpnRz.dyn) (45.4 KB)

![CombineMText](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/434977d0e1359cf083bfa933b8407badd6470f8d.gif)

---

<div class="post-metadata">

**Author:** ![dsotelo](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dsotelo](https://forum.dynamobim.com/u/dsotelo)\
**Post date:** [January 25, 2021, 6:51pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/3 "2021-01-25T18:51:38Z")

</div>

How are you getting the MText to return a new line for piece of text inside the mtext?

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 25, 2021, 6:57pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/4 "2021-01-25T18:57:53Z")

</div>

@dsotelo take a look at the sample file above.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c591a2674bcfce5d8bbc26b58fca8ac1f896c969.jpeg)

---

<div class="post-metadata">

**Author:** ![dsotelo](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dsotelo](https://forum.dynamobim.com/u/dsotelo)\
**Post date:** [January 25, 2021, 7:15pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/5 "2021-01-25T19:15:03Z")

</div>

Thanks for the Response.

Have you figured out how to change the justification for a piece of Mtext?

I figured out how to do a text mask if you are interested. I am trying to create a node that allows Mtext to be changed just like you can in the properties menu.

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

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [January 25, 2021, 7:29pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/6 "2021-01-25T19:29:33Z")

</div>

You can use the OOTB nodes for that, but if you don’t want to use _MText.Create_ then you’ll have to dig into .NET because the attachment point is an enumeration.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b793f84936b12268ce65e5491bb8ed62d6af34f5.jpeg)

---

<div class="post-metadata">

**Author:** ![dsotelo](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dsotelo](https://forum.dynamobim.com/u/dsotelo)\
**Post date:** [January 25, 2021, 7:56pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/7 "2021-01-25T19:56:43Z")

</div>

I didn’t use that node because it doesnt have a text mask.

I found the API below and tried it but cant get it to work.

[https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-FD7EDA56-7FA0-4616-A746-9B97AE0C6456](https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-FD7EDA56-7FA0-4616-A746-9B97AE0C6456)

Any suggestions on how to use the enumerations to justify the text would be appreciated.

---

<div class="post-metadata">

**Author:** ![dsotelo](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dsotelo](https://forum.dynamobim.com/u/dsotelo)\
**Post date:** [January 25, 2021, 8:20pm UTC](https://forum.dynamobim.com/t/3-mtext-to-1-mtext/59533/8 "2021-01-25T20:20:15Z")

</div>

Is this one the correct API

[https://help.autodesk.com/view/OARX/2021/ENU/?guid=OARX-ManagedRefGuide-Autodesk\_AutoCAD\_DatabaseServices\_MText\_SetAttachmentMovingLocation\_Autodesk\_AutoCAD\_DatabaseServices\_AttachmentPoint](https://help.autodesk.com/view/OARX/2021/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_MText_SetAttachmentMovingLocation_Autodesk_AutoCAD_DatabaseServices_AttachmentPoint)
