.NET

Reply
Valued Contributor
newautocad123
Posts: 58
Registered: ‎09-03-2012
Message 1 of 2 (155 Views)

How to avoid overlapping of programmatically created Mtext.

155 Views, 1 Replies
12-11-2012 09:45 PM

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.

 

ADN Support Specialist
augusto.goncalves
Posts: 312
Registered: ‎04-30-2009
Message 2 of 2 (113 Views)

Re: How to avoid overlapping of programmatically created Mtext.

12-14-2012 09:47 AM in reply to: newautocad123

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
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community