# Set Mtext Base Point

**URL:** <https://forum.dynamobim.com/t/set-mtext-base-point/72764>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [January 29, 2022, 5:44pm UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764 "2022-01-29T17:44:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon022](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@simon022](https://forum.dynamobim.com/u/simon022)\
**Post date:** [January 29, 2022, 5:44pm UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764/1 "2022-01-29T17:44:39Z")

</div>

Hi everyone,

sorry for my bad english, but I am trying my best 🙂

Is there a solution for my problem. I have multiply Mtext in the drawing (100). The X and Y of the mtext coordinate is fix. The Z coordinate ist 0. I want to select all Mext by selection or something. After this I want the Coordinate from the base point of the Mtext. The next step: Get the heigt of the DGM on the coordinate from the base point. After this, I want to update the Base Point from the Mtext to set the DGM heigt as Z heigth as property.

Thanks a lot. Sorry of the bad english

---

<div class="post-metadata">

**Author:** ![hosneyalaa](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hosneyalaa/32/100865_2.png) [@hosneyalaa](https://forum.dynamobim.com/u/hosneyalaa)\
**Post date:** [January 29, 2022, 6:24pm UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764/2 "2022-01-29T18:24:55Z")

</div>

Hi  
See this is

> [@From the coordinates inside the blocks to the cogo points](https://forum.dynamobim.com/t/from-the-coordinates-inside-the-blocks-to-the-cogo-points/66034/7):
>
> Welcome How can I replace the Python Script file? with nodes To collect two lists to creating points # Load the Python Standard and DesignScript Libraries import sys import clr # Add Assemblies for AutoCAD and Civil3D clr.AddReference('AcMgd') clr.AddReference('AcCoreMgd') clr.AddReference('AcDbMgd') clr.AddReference('AecBaseMgd') clr.AddReference('AecPropDataMgd') clr.AddReference('AeccDbMgd') clr.AddReference('ProtoGeometry') # Import references from AutoCAD from Autodesk.AutoCAD.Runtime…

---

<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 31, 2022, 11:14pm UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764/3 "2022-01-31T23:14:02Z")

</div>

Here you go @simon022. Give this a try.

[SetMTextBasePoint.dyn](https://forum.dynamobim.com/uploads/short-url/cez10w0ZjUh5LzXUvJJ6qrPcn47.dyn) (137.8 KB)

 ![MTextSetPoints](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/5676ff57845881f0cb78658e74f5e8e1ae445238.png)

---

<div class="post-metadata">

**Author:** ![simon022](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@simon022](https://forum.dynamobim.com/u/simon022)\
**Post date:** [February 1, 2022, 6:54am UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764/4 "2022-02-01T06:54:58Z")

</div>

Good morning @zachri.jensen, thank you so much. This ist exactly what I need. Can you give me a tipp to get more information about coding with python skript? commands usw.

---

<div class="post-metadata">

**Author:** ![maxime.carrierC5VFZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/maxime.carrierc5vfz/32/140158_2.png) [@maxime.carrierC5VFZ](https://forum.dynamobim.com/u/maxime.carrierC5VFZ)\
**Post date:** [June 13, 2022, 8:37pm UTC](https://forum.dynamobim.com/t/set-mtext-base-point/72764/5 "2022-06-13T20:37:19Z")

</div>

This is art, pure and simple. I didn’t knew you could pull that with a code block, nor that GetParameterByName angle.  
Thanks Zachri!
