CAD text Length \ Center Point of CAD text

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?



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.

Hi, @Daan
MID POINT TEST.dwg (78.0 KB)
how we can use Bounding Box for CAD text?

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