Jump to content

Text hieght change in vba


anindya

Recommended Posts

Your dwg is not about TEXT HEIGHT it looks like you want a chainage and level routine ie take length of line at a scale and add datum to get level and set horizontal distance as well. Must it be VBA I have something close in lisp. Pretty simple to do. Method is to create selection set of lines using the fence option rest is just length of line and X distance from a start pt.

Link to comment
Share on other sites

i need to select only the text portion or the full drawing by lisp or vba and can i get the result as per my requirements? because the scale in which i have to produce the drawing i am unable to show the text to readable.

Link to comment
Share on other sites

The text height is a property of text or mtext you need to do some home work on object properties via VBA, Layer color lineweight linetype rotation style to name a few. This is pretty basic stuff. Start searching "VBA Textstring"

 

ThisDrawing.Utility.GetEntity PitNameSlect, basepnt, "pick text : "
If PitNameSelect.ObjectName = "AcDbText" Then
dia1 = val(PitNameSelect.TextString)

Link to comment
Share on other sites

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