# CAD text Length \\ Center Point of CAD text

**URL:** <https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777>\
**Category:** Revit\
**Tags:** revit, python, geometry, dynamo\
**Created:** [March 5, 2024, 10:30am UTC](https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777 "2024-03-05T10:30:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalghuge2500](https://avatars.discourse-cdn.com/v4/letter/v/7ea924/32.png) [@vishalghuge2500](https://forum.dynamobim.com/u/vishalghuge2500)\
**Post date:** [March 5, 2024, 10:30am UTC](https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777/1 "2024-03-05T10:30:35Z")

</div>

I’m trying to get exact center point of CAD text. for same length text i can find it but for different length text I’m not able to find the center.  
how we can get the exact center point of CAD text?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/2256d5a6cdf9d399d414f1c672ddfb47476b9536.png)  
 ![text mid point_2024-03-05_03-44-40](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/c/3cd6ab936afa4810e4625ae8165d2b2ed84591b4.png)  
 ![Screenshot 2024-03-05 153930](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c26d2facffc707055c39a5cf33ea33a3e4a2221b.png)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [March 14, 2024, 11:13am UTC](https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777/2 "2024-03-14T11:13:32Z")

</div>

Hi @vishalghuge2500 ,

I recommend using the BoundingBox of these text elements to get the center point of these texts.  
However, since some of your texts are not axis-aligned I would first get their local coordinatesystem and translate that to the world origin such that their boundingboxes are all axis-aligned.

If you could upload a sample file with some of your texts I can draw up a small script.

---

<div class="post-metadata">

**Author:** ![vishalghuge2500](https://avatars.discourse-cdn.com/v4/letter/v/7ea924/32.png) [@vishalghuge2500](https://forum.dynamobim.com/u/vishalghuge2500)\
**Post date:** [March 18, 2024, 9:01am UTC](https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777/3 "2024-03-18T09:01:28Z")

</div>

Hi, @Daan  
[MID POINT TEST.dwg](https://forum.dynamobim.com/uploads/short-url/6fu4i8NJeLAdaj85yNn9stlHXiD.dwg) (78.0 KB)  
how we can use Bounding Box for CAD text?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 18, 2024, 12:50pm UTC](https://forum.dynamobim.com/t/cad-text-length-center-point-of-cad-text/98777/4 "2024-03-18T12:50:30Z")

</div>

I don’t recommend it as leaders being included makes the data inconsistent. Instead leverage the head location property which can be accessed via the Python shown here: [Structural Rebar Tags need to align Align - #7 by jacob.small](https://forum.dynamobim.com/t/structural-rebar-tags-need-to-align-align/98742/7)
