Back to Browse

AutoCAD Autolisp - Text Value Modification

5.2K views
Jul 2, 2015
4:31

AutoCAD AutoLisp Collection for Modifying Text Value - Interchange Texts, Copy Reference Text to all selected Texts, Divide the Text into sub Texts, Insert Sequential numbers, Update Text values with incremented Numbers, Add specified value to all selected Texts, Concatenate – prefix or suffix to available texts, Round-off Elevations to 0.005 Precision, Trim Text. Read More: https://esurveying.net/land-survey/autocad-autolisp-collection-text-modification Text Value Modification Welcome to Lesson on how to modify text content with a set of lisps provided in ESurvey Lisps. Interchange Texts When working on a drawing, it is often required that you have to interchange the texts i.e. To copy the content of one text to another and vice-versa. Normally to interchange the text in CAD one has to move the text positions OR Copy and Paste the content of one text to another and vice versa. But, by using the ITX command interchanging the text content between the two texts is just a one-step process. Copy Reference Text to all selected Texts If you have to change the content of multiple text entities within the drawing with the same caption, ‘CPT’ command can be used. For Example, in a drawing, you may have ground levels in one layer and if you want to copy all of them to represent a constant formation-level use ‘CPT’ command. Create new Text using the content of selected Texts Many times content of one text is created as two different texts. For example “12th Main Oxford Layout” would have been created in the drawing as different 3 texts “12th Main”, “Oxford” and “Layout”. Making it as a single text has its own advantage in further editing. To merge such scattered text use ‘ADT’ command. Divide the Text into sub Texts Sometimes to accommodate text in a given drawing space, it may be required to divide the text into two different texts. In such cases, the ‘DVT’ command can be used which divides the texts into subtexts. Note that the DVT command divides the text where ever it finds the space in between words of selected text. Insert Sequential numbers Marking sequential numbers in CAD is common while giving parcel numbers in layout drawings. Creating parcel numbers in sequential order in CAD is time taking assignment. To solve this requirement SQN command can be used, just by clicking the point next number text will be created. Update Text values with incremented Numbers Using the ‘INR’ command it is possible to update the available texts in a Sequence. ‘INR’ and ‘SQN’ commands are different. ‘SQN’ command is used when you are inserting the sequential number for the first time, whereas you have to use the ‘INR’ command to update the broken link of sequential numbers back to continuous. Add specified value to all selected Texts This option is used to add or subtract a numeric value to all the selected texts. Let us say a drawing is generated with a benchmark of 91.468. After creating the entire drawing, if you come to know that the actual benchmark was 96.468 and not 91.468, then all the elevations in the drawing have to be added with value 5. In such cases using ‘ADV’ command, you can add or subtract a specific value from selected texts. Concatenate – prefix or suffix to available texts Requirements like appending common text like “Meter” for all the text representing measurement can be done using ‘APT’ command. Round-off Elevations to 0.005 Precision This option is used to round off elevations to 0.005 precision of all the selected texts. Many survey instruments can read the values with precision up to 0.005. When editing the drawing or interpolating, the elevations may not be rounded off to 0.005. In such cases, selected elevations in the drawing can be rounded to the nearest 0.005 using the ‘RND’ command. Trim Text If there are extra unwanted spaces on either side of the text content, it can be trimmed using ‘TMT’ function. For example, if there is a text ‘[Space] Albert Street [Space] [Space]’ after selecting that text using TMT command it would become ‘Albert Street’. Thank you, in the next section you will learn some lisp programs related to Lines. Read More: https://esurveying.net/land-survey/autocad-autolisp-collection-text-modification

Download

0 formats

No download links available.

AutoCAD Autolisp - Text Value Modification | NatokHD