# Dynamo Civil 3D Nodes for Reading Object Label/MText/Text

**URL:** <https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033>\
**Category:** Civil 3D\
**Tags:** excel, dynamo, civil3d\
**Created:** [October 9, 2020, 2:38pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033 "2020-10-09T14:38:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 2:38pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/1 "2020-10-09T14:38:58Z")

</div>

Hi,

I am currently working on a project where it would be beneficial the get a printout in excel of information that is contained in Civil 3D labels. The Civil 3D labels are for a series of Catchments that contain the Catchment name and the area of each Catchment. I will list the options I came up with below:

1. Export Catchment information from Civil 3D to Excel using Dynamo. (I am not sure this is actually possible as it appears that their isn’t a lot of exposure in the API for Catchments)
2. Use the Civil 3D labels that are attached to the Catchments to get the information I need out of Civil 3D and into Excel.

Option 2 seems like the path I would need to take. My plan was to try and explode those labels down to text and then use Dynamo to grab the portions of the text I am interested in (Name/Area). I could then organize this text into a couple of lists that would be sent out to Excel.

I am not seeing any nodes that would allow me to read/organize this MText (or Text depending on how far I explode the labels). If anyone else has any experience working with text in Dynamo I would love to hear some further options.

Thanks in Advance!

---

<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:** [October 9, 2020, 2:56pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/2 "2020-10-09T14:56:41Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35d60f17ec81c751dfcca80b699323745ec2b43a.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:** [October 9, 2020, 3:03pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/3 "2020-10-09T15:03:23Z")

</div>

Hi @hestingjj,

Option 1 is definitely doable. There were several new updates to the API in 2021.1 with a lot of added exposure for catchments.

[https://help.autodesk.com/view/CIV3D/2021/ENU/?guid=GUID-6D41D043-4958-40B7-9C7E-45A6D780955B](https://help.autodesk.com/view/CIV3D/2021/ENU/?guid=GUID-6D41D043-4958-40B7-9C7E-45A6D780955B)

I’d avoid option 2, but here are some examples for future reference.

 ![Text](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/16d3946d249d314857e700a24be1c8f41abf4a99.png)

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:15pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/4 "2020-10-09T15:15:31Z")

</div>

Thank you I will start taking a look at that!

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:42pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/5 "2020-10-09T15:42:25Z")

</div>

Thanks for the reply. I get a warning when I attempt to sort the Dictionary on the selected Catchment. Additionally, The Area2d component returns null for me, but the Catchment 2D area in C3D is 0.33 acres. Do you think I am running a different version than you are? See attached image.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/2/b2c0b1d490dbc5ba5dc957dd453bbd5b1a4aed8d.png)

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:49pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/6 "2020-10-09T15:49:00Z")

</div>

Got it to run without warning. Needed to use Select Object instead of Select Objects. Still appears that I am not able to get the same parameter as what you are showing on your original screenshot. I am running C3D 2021.

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

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:51pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/7 "2020-10-09T15:51:00Z")

</div>

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

---

<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:** [October 9, 2020, 3:51pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/8 "2020-10-09T15:51:16Z")

</div>

@hestingjj what object did you select?

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:51pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/9 "2020-10-09T15:51:56Z")

</div>

A catchment I created and named SD01-01

---

<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:** [October 9, 2020, 3:53pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/10 "2020-10-09T15:53:35Z")

</div>

Check the temp folder for a Autodesk.Civil3DToolkit.log and look for errors

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:55pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/11 "2020-10-09T15:55:40Z")

</div>

Here is another attempt.

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

---

<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:** [October 9, 2020, 3:57pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/12 "2020-10-09T15:57:25Z")

</div>

you need to show me the log

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 3:57pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/13 "2020-10-09T15:57:40Z")

</div>

can you point me to that folder?

---

<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:** [October 9, 2020, 3:57pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/14 "2020-10-09T15:57:55Z")

</div>

read above

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 4:06pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/15 "2020-10-09T16:06:56Z")

</div>

I searched not only the temp folder, but couldn’t find a log file for this on my hard drive.

---

<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:** [October 9, 2020, 4:08pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/16 "2020-10-09T16:08:30Z")

</div>

If the file is missing it means that it did not trigger any exceptions in the code, so you are on your own.

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 9, 2020, 4:10pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/17 "2020-10-09T16:10:00Z")

</div>

there isn’t a log file in the temp folder is what I was trying to say.

---

<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:** [October 9, 2020, 4:10pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/18 "2020-10-09T16:10:46Z")

</div>

I understood, can’t help you then

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [October 15, 2020, 11:23pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/19 "2020-10-15T23:23:09Z")

</div>

wow cool thanks for the heads up about the new catchment api! hopefully some new nodes show up in the c3d tool kit someday 😉

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [October 16, 2020, 10:02pm UTC](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033/20 "2020-10-16T22:02:23Z")

</div>

> [@hestingjj](#):
>
> warning when I attempt to sort the Di

I just tried this and works for me, maybe you need the 2021.1.1 C3D update to get it to work?

 ![Catchment-Output to Excel_2020-10-16_02-59-54](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/b/abddd78a56cfa2b99f8d8ecd0622f4b1980cc832.png)

[Next page](https://forum.dynamobim.com/t/dynamo-civil-3d-nodes-for-reading-object-label-mtext-text/56033.md?page=2)
