• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

insert the layout location number - update and integration

  • Thread starter Thread starter samurai76
  • Start date Start date

samurai76

Guest
hi, I hope not to offend someone or transgress some rules (there is no in the regulation) if I reexhume the discussion below to give it more emphasis.
https://www.cad3d.it/forum1/threads...-posizione-dei-layout?highlight=numero+layoutMy goal is to do exactly what is written in the title.

I leave the solutions that have kindly provided "gp." and "scalzo" because I found another (in my opinion) easier on a site I don't know if I can insert the link (at least I seem to understand from the regulation... you will let me know if I can).

in a few words they propose to insert in a text type "pag.1/2/3/4... of 24" instead of number 1 the field ctab from the system variable and instead of number 24 the field of a lisp variable after charging it with appload from a simple script that calculates the total of the layouts present.

All right, all right. the problem that my laziness pushes me to look for an even thinner automatism.

Actually, instead of the number 1 mentioned above, the position in sequence of the layouts is not inserted but simply the name of the layout in which the field is inserted... so if it appears "page.1/2/3/4.... of 24" means that the layouts are called 1/2/3/4 respectively. . .

If, as in my case, the layouts have alphanumeric names the prograssion comes to jump.

other pseudo-solutions found on English forums propose to name the layouts by inserting at the beginning or at the end a progressive number that tarmite a formula that uses the ctab variable allows to obtain only the first or last characters of the layout name. However, if a sheet is removed or moved, the automatic sequential numbering would be less.

After this long (and I hope clear) premise I ask if someone could advise me or direct me to a viable solution that can allow me to get the position of the layot in which I insert the text through lisp or formula avoiding using the so-called sheetset.

I tried other lisp (always on English sites) that say they do what I need but I can't load them in the lisp variables as I did with what gets the total.

thanks for the attention

samuele
 
...

Actually, instead of the number 1 mentioned above, the position in sequence of the layouts is not inserted but simply the name of the layout in which the field is inserted... so if it appears "page.1/2/3/4.... of 24" means that the layouts are called 1/2/3/4 respectively. . .

If, as in my case, the layouts have alphanumeric names the prograssion comes to jump.

...
samuele
I think there is a solution here (if I understand your needs well). read to the end though!!!
https://www.professionearchitetto.it/bacheca/software/386301/numero-scheda
 
hi dieva, thank you very much for the tip!!!

I turned for long and wide google but never came to mind to filter the search simply with the word "card". . .

Everything works perfectly. . . only thing to define the procedure of updating the fields when other tabs are added/selected. with regenerates everything is not updated, the field of the total is updated only after rebooting autocad (and this I think is indisputable) while to update the page number I must necessarily enter the field and restore confirmation to the command in diesel.

However they are all marginal details...the big one is done.

great dieva and thanks again!!!

samuele
 
Bye.
Everything works very well... for windows. But could someone tell me how to do it for Mac?
I uploaded the lisp and I think I take it because the total layout number is displayed and updates it if I close and reopen. However the card number no, I tried to reload it in the data field, but nothing.
Thank you and excuse the trouble.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top