ronjonp Posted March 26, 2020 Posted March 26, 2020 37 minutes ago, Lee Mac said: There is no need to create temporary text objects, nor guess the width using the number of characters and a factor, just use the textbox AutoLISP function. Hahahaha .. I was wondering when someone would bring that up 1 Quote
dlanorh Posted March 26, 2020 Posted March 26, 2020 1 hour ago, Lee Mac said: There is no need to create temporary text objects, nor guess the width using the number of characters and a factor, just use the textbox AutoLISP function. That doesn't solve this request Lee Quote I actually want to transfer the elevation codes that are in the drawing so that the insertion point falls on the dot point Of course, this way I have to use the right font, which is a problem (I mean, the font that gives a space to all the characters) excuse me for may bad english Quote
Lee Mac Posted March 26, 2020 Posted March 26, 2020 1 hour ago, dlanorh said: That doesn't solve this request Lee How so? Quote
dlanorh Posted March 26, 2020 Posted March 26, 2020 31 minutes ago, Lee Mac said: How so? As far as I can make out he wants either the insertion point of the text to be the decimal point, or to move the text so that the decimal point of the elevation text is over the node. No drawiing so otherwise clueless. Quote
BIGAL Posted March 26, 2020 Posted March 26, 2020 (edited) Think of it this way. using mono text its possible. Working out the width of each character may work. Compare 1 & 4 Edited March 26, 2020 by BIGAL Quote
Roy_043 Posted March 27, 2020 Posted March 27, 2020 Getting the decimal point to match the insertion point is probably difficult. But aligning a column of texts so their decimal points are exactly below each other is possible with the textbox function. Get the width of "123.45" and of ".45" and use the difference to move the text. Quote
BIGAL Posted March 27, 2020 Posted March 27, 2020 (edited) Roy try 111.123 v's 444.123 and change fonts style mono Arial Isocp etc I don't think it will work. Edited March 27, 2020 by BIGAL Quote
Lee Mac Posted March 27, 2020 Posted March 27, 2020 (edited) Assuming a fixed width text style is not necessary - consider a text object with left justification and content "123.45", calculate the width of "123." using the textbox function and translate the object by this width to the left. Edited March 27, 2020 by Lee Mac Quote
Roy_043 Posted March 27, 2020 Posted March 27, 2020 (/= "fixed text style" "fixed width text style") Quote
Lee Mac Posted March 27, 2020 Posted March 27, 2020 9 hours ago, Roy_043 said: (/= "fixed text style" "fixed width text style") What did you mean then? Quote
Roy_043 Posted March 28, 2020 Posted March 28, 2020 As BIGAL suggests, a textstyle can be changed, which would mess up the vertical alignment of the texts. Quote
BIGAL Posted March 28, 2020 Posted March 28, 2020 To get even more technical the decimal point moves depending on the font, some are at bottom, others say at mid height. Our surveyors have to use correct font for title work. 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.