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

Get the Bounding box of Text and MText

5 REPLIES 5
Reply
Message 1 of 6
wesbird
1696 Views, 5 Replies

Get the Bounding box of Text and MText

Hi,
I just found GeomExtents does not return the correct bounding box information of text and mtext in C#. I know I can do it with COM Interop. but it will slow. So is there any way I can do it in pure manage code? sample would be great.


Thank you very much
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
5 REPLIES 5
Message 2 of 6
wesbird
in reply to: wesbird

I just found GetBoundingPoints for MText. Is anyone use this function? any experise?



Thank you
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
Message 3 of 6
Anonymous
in reply to: wesbird

Any reason you can't use the ActualWidth and
ActualHeight properties?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5103180@discussion.autodesk.com...
Hi,
I just found GeomExtents does not return the correct bounding box information of text and mtext in C#. I know I can do it with COM Interop. but it will slow. So is there any way I can do it in pure manage code? sample would be great.


Thank you very much
Wes
Message 4 of 6
wesbird
in reply to: wesbird

ActualWidth and ActualHeight only have the size, I also need the location. Is this doable?
Thank you, Tony. I also learn a lot from your other post.



Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
Message 5 of 6
Anonymous
in reply to: wesbird

How about the Location property?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5103529@discussion.autodesk.com...
ActualWidth and ActualHeight only have the size, I also need the location. Is this doable?
Thank you, Tony. I also learn a lot from your other post.



Wes
Message 6 of 6
wesbird
in reply to: wesbird

GetBoundingPoints work prefect for MTEXT, now the question is how about TEXT?



Thank you,
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023

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