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
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