EIA Posted October 22, 2024 Posted October 22, 2024 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? Quote
SLW210 Posted October 23, 2024 Posted October 23, 2024 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. Quote
CyberAngel Posted October 23, 2024 Posted October 23, 2024 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. Quote
BIGAL Posted October 23, 2024 Posted October 23, 2024 (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. Edited October 23, 2024 by BIGAL Quote
EIA Posted November 4, 2024 Author Posted November 4, 2024 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 Quote
BIGAL Posted November 4, 2024 Posted November 4, 2024 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) ) Quote
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.