# Update 2 - MTEXT ... Rotation?

**URL:** <https://forum.dynamobim.com/t/update-2-mtext-rotation/45312>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [January 9, 2020, 6:29pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312 "2020-01-09T18:29:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![suraky](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@suraky](https://forum.dynamobim.com/u/suraky)\
**Post date:** [January 9, 2020, 6:29pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/1 "2020-01-09T18:29:21Z")

</div>

Update 2 for Dynamo for Civil3D is out - Awesome. Keep those updates coming. I’ve been itching to have an MTEXT node and now we have it.

… But unlike the TEXT node, there’s no port for Rotation?

And you can’t turn on the background mask?

Am I missing something?

Thanks

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [January 9, 2020, 6:56pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/2 "2020-01-09T18:56:31Z")

</div>

@suraky you can transform the objects after the creation

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

---

<div class="post-metadata">

**Author:** ![suraky](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@suraky](https://forum.dynamobim.com/u/suraky)\
**Post date:** [January 9, 2020, 7:44pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/3 "2020-01-09T19:44:29Z")

</div>

Thanks Paolo, I had a hunch that Transform might do it, came back to share how I did it and you beat me to it 🙂

The background mask is what I was really looking forward to with MTEXT, but even without, Update 2 will streamline my user’s experience.

 ![mtext_rot_1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d1556acab38e4590b250a06bf98788c6a83edff1.jpeg) ![mtext_rot_3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ff12afba664b209e6901141e98be2f3fa48c7b9c.jpeg)

---

<div class="post-metadata">

**Author:** ![suraky](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@suraky](https://forum.dynamobim.com/u/suraky)\
**Post date:** [January 9, 2020, 9:08pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/4 "2020-01-09T21:08:10Z")

</div>

Wow, so the rotation works fine … but you can’t set the text height like we can with TEXT. I suppose I’ll see if transform can handle that with scaling, rather than making my users set it (or the default style) manually

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [January 9, 2020, 10:29pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/5 "2020-01-09T22:29:47Z")

</div>

@suraky I don’t mean to be rude, but please, before posting a question look into the nodes…

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/98802702c824d2546ed167765b0048582d8c21be.png)

---

<div class="post-metadata">

**Author:** ![suraky](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@suraky](https://forum.dynamobim.com/u/suraky)\
**Post date:** [January 9, 2020, 11:31pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/6 "2020-01-09T23:31:35Z")

</div>

Thanks Paolo, I appreciate your help. However, MText.SetHeight does not change the text height. It does the same thing as the height input port on Mtext.Create … changing the height of the text box, not the text within.

… I could spend all day listing off inconsistent and vague names and descriptions like this that I’m sure we all fall into.

---

<div class="post-metadata">

**Author:** ![suraky](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@suraky](https://forum.dynamobim.com/u/suraky)\
**Post date:** [January 9, 2020, 11:53pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/7 "2020-01-09T23:53:28Z")

</div>

… so ultimately, instead of just using some simple ports on Mtext.Create to use a rotation and an actual text height, at my insertion points, I’ve had to create the mtext at the origin, and use object.transform with coordinatesystem.scale, coordinatesystem.rotate, and coordinatesystem.translate to modify the mtext objects.

And I spent a lot of time trying to make the adjustments with the mtext created at the insertion points first and failing - probably because I don’t know enough about coordinatesystem objects, but maybe because so many of the coordinate system nodes only work relative to the Origin, not the base point of the object, or a base point that I can set.

This isn’t really a complaint or rant, I know I need to learn. This is a call for real reference material with full detailed descriptions of what the nodes and their ports actually do so that I don’t have to keep guessing.

---

<div class="post-metadata">

**Author:** ![gcarvalhoDF](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gcarvalhoDF](https://forum.dynamobim.com/u/gcarvalhoDF)\
**Post date:** [January 7, 2022, 2:15pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/8 "2022-01-07T14:15:39Z")

</div>

Is it wrong to set it with .SetParameter? This discussion was helpful to see that no matter which node I used I would be laking properties, either the attachment, or rotation+textheitght.

Ultimately it was easier to create the text with the original node as the rotation AFTER placing it with the correct attachment to make the orientation work.

 ![mtext set](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/b/bbceee113ffe316e43075b7a074f7daf4f4f175c.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 7, 2022, 3:06pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/9 "2022-01-07T15:06:53Z")

</div>

@gcarvalhoDF there is a node in the Civil 3D Toolkit to create MText with a rotation input, maybe that will help?

---

<div class="post-metadata">

**Author:** ![gcarvalhoDF](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gcarvalhoDF](https://forum.dynamobim.com/u/gcarvalhoDF)\
**Post date:** [January 7, 2022, 5:45pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/10 "2022-01-07T17:45:37Z")

</div>

It has rotation input, but it doesn’t have attachment input. And neither of them has Background editing. Everything is working fine, I was just wondering if is it wrong to set it with the SetParameterValue blocks.

I know Python, but I still need to learn how to code with the API. Just did some basic code for sorting and calculating variables, nothing related to object editing.

---

<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 7, 2022, 6:02pm UTC](https://forum.dynamobim.com/t/update-2-mtext-rotation/45312/11 "2022-01-07T18:02:03Z")

</div>

> [@gcarvalhoDF](#):
>
> I was just wondering if is it wrong to set it with the SetParameterValue blocks.

Nope, not wrong…whatever works 🙂
