Print Page | Close Window

Change text lisp routine

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12344
Printed Date: 01.Jun.2026 at 02:50


Topic: Change text lisp routine
Posted By: psgbs1
Subject: Change text lisp routine
Date Posted: 16.May.2017 at 17:20
good afternoon to one and all.
I have multiple Tabs with the exact same title block and text to be changed in the same location in each tab.
I am looking for a lisp routine that will seek the same text in each tab and change a number sequentially, i.e. 1 on tab 1 2 on tab 2 etc.
 
It would save me an inordinate amount of time as vs clicking on each tab and changing the text manually on sometimes up to 250 tabs.
 
I also need to adjust the viewport on each tab to turn one layer off and the next one on i.e. plot 1 off and plot 2 on, then move the drawing to centre over the plot 2 layer and so on.
 
I would try and write one myself but don't have a clue where to begin and it sounds quite complicated if it is even possible.
 
If anyone has something that will help or can advise further on alternatives that will achieve the same thing I would very much appreciate it.
 
May the cad gods be with you!!! because you will be a god if you can save me all this time!!


-------------
Cheers
Pete



Replies:
Posted By: jkaunisto
Date Posted: 21.May.2017 at 10:53
I have similar needs: I have one drawing block (header) filled with up-to-date (attributes) data. Now I need to update hundred blocks (in the same or separate drawings) with almost same data. I should be able to choose which data I have to fill by hand or automated (numbers or patterns) means. What I gain with this is: all data written in the same way of the project and I can concentrate only to information on the header, that must be changed.

chgtext.lsp makes almost that what you asked at least for text? Try to find that, if you really are using text?!


-------------
Almost 40 years AutoCAD !


Posted By: John Connor
Date Posted: 22.May.2017 at 13:07
psgbs1: Is the text you want to change an attribute?


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: psgbs1
Date Posted: 23.May.2017 at 18:17
it is just straight M-text.

-------------
Cheers
Pete



Print Page | Close Window