The height and width of the dimension text

The height and width of the dimension text

SimonaQQ
Advocate Advocate
1,117 Views
3 Replies
Message 1 of 4

The height and width of the dimension text

SimonaQQ
Advocate
Advocate

Hello,

I want to implement such a function. When dimension text overlaps, move one of the dimensions so that it no longer overlaps.
My idea is to calculate the rectangular border of the text through the position of the text and the width and height of the text, and then judge whether the rectangular borders intersect.
So how to calculate the width and height of dimension text?

Thank you.

DimensionDimensionDimentionType ParametersDimentionType Parameters

0 Likes
Accepted solutions (1)
1,118 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Look at these two recent threads here in the forum:

   

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

jeremy_tammik
Alumni
Alumni

Did you solve it? I hope so! Shared the thread on the blog:

 

https://thebuildingcoder.typepad.com/blog/2022/01/detailed-2d-text-and-other-element-geometry.html#2

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 4 of 4

sonicer
Collaborator
Collaborator

problem is the Text Note have parameter width of text...but dimension text doesn't.

you need testing many situation for create some algorithm or use The coder solution 😉

 

 

0 Likes