Jump to content

How to get the real text height from the selection?


Recommended Posts

Posted

Layer 0 is HZ fonttype,

Text selected from selection is romans ,the real height is 3,but when i use the Methods as follows:

Height = objText.Height

or Height = TextHeight(objString)

The value of Height are not 3,but is 510,so weird?(AutoCAD 2004, cannot use GetTextHeight())

 

The code as below for reference:

 

'过滤组

Posted

can you post the entire code? Also my guess would be that this needs to be converted from some format. I did try to test your example but either my version of .net or Autocad gave me issues.

  • 2 weeks later...
Posted

That kind of sounds like a drawing units issue, if so you can convert, or set a known unit for realible data;property extraction.

Posted

Still understand. But thanks a lot!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...