.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to avoid overlapping of programmatically created Mtext.

1 REPLY 1
Reply
Message 1 of 2
newautocad123
388 Views, 1 Reply

How to avoid overlapping of programmatically created Mtext.

How to avoid overlapping of programmatically created Mtext.

 

I have createdMtext for the points present the dwg file, so that they get displayed as labels.

 

But when there are some densely located points, these points overlay and cannot be read. The font size also adjusted. Then too there are lot of overlapping.

How to avoid overlapping of programmatically created Mtext. 

thanks.

 

1 REPLY 1
Message 2 of 2

Hi,

 

The MText don't have a property for it...but you can create it, get the bounding box, then select using this coordinates, if the selection find any other text, then is overlapping, so you change the position and try again.

 

What do you think?

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost