• 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

  • Thread starter Thread starter scalzo
  • Start date Start date

scalzo

Guest
hi, I'm new to autocad, I'm creating a paper block that must also contain the page number as #pg/#pg_tot, is there a way to automatically take the layout position as variable? I read from somewhere a taborder variable but I can't find it... I already used the ctab variable to take the name of the layout, now I would need to take the number. Thank you so much!!
I tried to do a research in the old discussions, but I couldn't find anything. . .
 
try to insert these formulas:

layout location number:(1+ (vl-position (getvar 'ctab) (layoutlist)))Total number of layouts:(length (layoutlist))
 
hi, thanks to the answer, but it doesn't seem to work, but more likely I am not able to use the formulas :) I have entered -> data field -> formula -> and in the box I wrote what you suggested naked and raw without. I don't know if special characters are added to indicate that variables or if the formula needs initial and final tags....
ps: I thought of using the layout location to number the tables, but if there is another method already tested and working I still feel good :) (some type of consecutive numbers)


In the meantime that I am disturbing I make it perbene and I ask another thing: is it possible to do in that a text is the copy of another text present in the model? I explain, I have a text that repeats itself in the model and I need to change it all, if there was a way to change it only once and then update others (the function finds it is not good because this text repeats itself in other parts but must not be changed)
thank you, excuse the disorder and the little clarity ^_^
 
Try that.

from command line type (setq lay_tot (length (layoutlist))), or assign the string to a button, so as to set the lay_tot variable with the value of the layouts present.
such string can also insert it into the acadxxxxdoc.lsp in order to update the variable value at each opening of a dwg (xxxx = your autocad version).

creates an attribute with the value of the "default" box so stung: apg/bpg_to
deafa = fielded to the ctab system variableb = fielded to the variable lisp lay_tot


for the other problem you make several copies of a text to which you will have assigned a field to content of the text to be replicated.
modifying the text "origin" others will be updated with a rigen.
 
Is it possible to make a text copy of another text in the model? I explain, I have a text that repeats itself in the model and I need to change it all, if there was a way to change it only once and then update others (the function finds it is not good because this text repeats itself in other parts but must not be changed)
thank you, excuse the disorder and the little clarity ^_^
create a group of all texts to change
 
I need it, too, but I can't get the function described above working. from promp commands read me the strings listed above, but I can't figure out how to create a text field that automatically does
 

Forum statistics

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

Members online

No members online now.
Back
Top