AutoCAD AutoLisp Collection - Text Entities

Опубликовано: 18 Март 2026
на канале: ESurveying Softech (India) Pvt. Ltd.
5,935
13

You can find AutoLisp for aligning Text, arranging Text, Rotating Text, Changing Text Case Etc in Text Section of ESurvey Lisps. ESurvey Lisps is a collection of 200 AutoLisp Commands tailor-made to suite to help users improve their productivity while working on Infrastructure Engineering drawing.

Read More:
https://esurveying.net/lisp-collectio...

Text Alignment

Welcome to Lesson on Lisps related to Text Alignment.

The presentation of drawing is important when you prepare a survey drawing. CAD systems normally focus more on entity geometry and not on text presentation. It does not have as many features as offered in Word, Excel for text alignment. This section of ESurvey Lisp addresses some of the text alignment requirements.

Rotate text with respect to the angle of selected points
Many times it is necessary to rotate text entities in a drawing with respect to another entity. Using the rotate command in the CAD, texts can be rotated. But, by using rotate command rotating multiple texts do not give the desired result, because the rotation of all the texts is done with respect to a single base point in CAD. Use ‘RT’ command to rotate the texts in the drawing which can rotate text parallel to selected points considering the insertion point of the respective text as a base point.

Align text with respect to selected text
In CAD, texts cannot be aligned Left, Right, or Center to any reference text as you justify text in Word or Excel. Only within MText editor, you can justify the texts. MText is not the preferred entity type in CAD for many other reasons. Using ‘ALT’ command it is possible to arrange scattered text with different justifications with a given distance.

Arrange text around a line
In alignment drawings, once alignment is fixed and their respective levels are interpolated along the alignment, most of the texts representing the elevations will not be perpendicular to the Cross-section lines. Using ‘PTX’ command, texts around a cross-section line can be rotated perpendicular to increase the readability of the drawing.

Align Selected Text Parallel to Selected Line
Often in many survey drawings, the texts are not aligned properly as shown in the drawing. Aligning these texts parallel to the selected line increases the readability of the drawing. Aligning individual texts takes a lot of time in CAD with inbuilt commands. Using ‘ALP’ command it is possible to rotate and align the texts parallel to the selected line.

Change text case (Initial Capital / Capital / Small)
In CAD drawing percentage of text, usage is less compared to word documents. Many versions of CAD Packages do not offer features like changing the case of selected text to upper, lower and title cases. Using ‘CCA’ command for multiple text entities case can be changed.

Change Text Justification
Text Justification plays a key role in aligning the text with respect to other entities in the drawing. In CAD there are 12 Text Justifications, which itself indicates the importance of text justification. Using the CJ command Text Justification can be changed for all selected texts.

Change angle of text to conveniently read it
While working with drawings it is many times incidentally texts are rotated in a way, it becomes difficult to read the text. When the angle of the text is between specific values, texts look like bottom-up. Using ‘RTC’ command, you can change the angle of text, so that it becomes easily readable.

Thank you in the Next Section you will learn lisps related to Text Value Modification.

Read More:
https://esurveying.net/autocad-autoli...