Jump to content

Recommended Posts

Posted

image.thumb.png.021f7deb084995d2fc0a428de7228bec.png

Well, what the text is implying, is there any way to underline something that is not the top or bottom line on a multileader with text, such as typing \X on a dimension?

Posted

No. You cannot even underline the middle MText just the top, bottom and all, AFAIK.

 

Make the text you want underlined the bottom of the MText and create everything below that as a separate MText.

 

I seldom use MLeaders, maybe someone will come along that has a trick or two.

Posted

The thing is, the bottom "underline" is really the lower edge of the box containing the text, and the top "underline" is offset from the top by one line's height--which can be off if the first line includes special characters. So the leader doesn't understand that there are individual lines of text, just that there's a box full of text.

 

You should be able to create a separate mtext object and attach it to the bottom of the mleader object, as SLW suggests. That mleader would have a bottom attachment point. You could also create a second mtext object and attach it to the top of a mleader that has a top attachment point, which should give the same result. Which method you use may depend on how the information breaks out, that is, if the first three lines and the last one are associated with each other, use the first option; if the first two and second two are associated, use the second option.

Posted (edited)

Not sure you can as the underline is auto created based on the length of the text

 

If your happy with an arrow line and mtext then can be done. I have a arrow line lisp.

 

In mleader style maybe this turn off and no underline.

image.png.ced6cb59fc86f3a132ee25b12eba8074.png

Edited by BIGAL
  • 2 weeks later...
Posted

welp, coming back from vacation to see the bad news, thanks anyway for the replies

 

Quote

The thing is, the bottom "underline" is really the lower edge of the box containing the text, and the top "underline" is offset from the top by one line's height--which can be off if the first line includes special characters. So the leader doesn't understand that there are individual lines of text, just that there's a box full of text.

Actually, this point of view is quite good for a LISP routine that makes that maybe? Is that what you BIGAL made there? It would be great to have something like that, since most or my notes are in both English and Spanish, and that underline would be perfect for separating both texts

Posted

This is very crude attempt, it just draws a pline with an arrow head, then invokes the mtext command. 

 

I am not sure if in a dynamic block can use say a insertion point of mtext, like you would in a field, to adjust the end point. Maybe some one knows how to, trying to avoid a reactor for the pline. Tried copilot got close but had to have a reactor for every pline object  drawn.

 

(defun c:test ( / pt1 pt2 pt3 pt4 ang)

(setq pt1 (getpoint "\nPick point 1 "))
(setq pt2 (getpoint pt1 "\nPick 2"))
(setq ang (angle pt1 pt2))

(setq pt3 (polar pt1 (+ ang 0.157) 2.5))
(setq pt4 (polar pt1 (- ang 0.157) 2.5))

(command "pline" pt2 pt1 "w" 0.5 0.5 pt3 pt4 pt1 "")
(setvar "plinewid" 0.0)

(Command-s "mtext" pt2 pt2)

(princ)
)

 

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