Jump to content

How to get the real text height from the selection?


wuhuan2080
 Share

Recommended Posts

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:

 

'过滤组

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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
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.

 Share

×
×
  • Create New...