pondpepo9 Posted January 23 Posted January 23 "Hello everyone, I'm looking for a Lisp routine that can automatically replace text within a layout. For example, if I have a text 'See box on page 3/5' in layout 1, and the page number changes to 4/5, I want the text to automatically update to 'See box on page 4/5'. I've seen LeeMac's Lisp for automatic layout creation, but I'm not sure if I can adapt it to this specific task. Could anyone please help me with this? Thank you very much." Quote
BIGAL Posted January 23 Posted January 23 If you look at using a field in the text there is a property "Taborder" which is the layout number that gets you the "4" you can also add 1 to the field so that makes the "5"". Other wise need a edit text function. Yes need a dwg. Quote
pondpepo9 Posted January 24 Author Posted January 24 9 hours ago, hosneyalaa said: Can you attached example drawing I wrote a message on page 1 in the layout. Currently, there are only 2 pages in the layout. This is an object on page 2. Then, when I added the layout to have 4 pages, the object from page 2 moved to page 3. I want the text I wrote as "Page 2/2" to automatically change to "Page 3/4." Is it possible to do this? Where should I start learning? I once saw a Lisp by Leemac that automatically changes the Layout page. I wonder if it could be adapted for this purpose. Quote
BIGAL Posted January 24 Posted January 24 As I suggested already you can use two fields in a mtext or even an attribute in your Title block. Have a look at this link check last post Re Lee-mac code to make fields. https://forums.autodesk.com/t5/autocad-forum/update-lisp-generated-field-automatically-layouts-counter/td-p/8959842 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.