wuhuan2080 Posted June 30, 2010 Share Posted June 30, 2010 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: '过滤组 Quote Link to comment Share on other sites More sharing options...
RMS Posted July 1, 2010 Share Posted July 1, 2010 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. Quote Link to comment Share on other sites More sharing options...
10west Posted July 13, 2010 Share Posted July 13, 2010 That kind of sounds like a drawing units issue, if so you can convert, or set a known unit for realible data;property extraction. Quote Link to comment Share on other sites More sharing options...
wuhuan2080 Posted July 17, 2010 Author Share Posted July 17, 2010 Still understand. But thanks a lot! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.