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

automatic cartiglio titles from external processed list

  • Thread starter Thread starter STAP
  • Start date Start date

STAP

Guest
Good morning,
then after several experiments I arrived at this dwg mechanical plants,
where the cartiglio is an external reference that is equal to all layouts and various fields in red within it are precompiled according to work.
The layouts are automatically renamed with a lisp that renames them that way and the attributes in the layouts change accordingly according to the window used and the layout name.
Now I ask myself: I would like to change the text in purple (which is different for each design based on the plan and the plant), but the cartiglio block (which is an external reference) is the same for everyone and if I create an attribute in layout then it will be the same for everyone, since each layout will then derive from the previous one.
Do you have any advice?
 

Attachments

Last edited:
You don't have many choices.
or a text like you did or a block with only one attribute to insert and edit so many times how many layouts are.

data fields offer the possibility to insert diesel expressions (a simple programming language based on strings) but to automatically derive - for example - the names of the plans would take us an element related to the layout that is directly linked to the floor.
For example: if the layout name ends with "001" then we are on the ground floor, with 002 we are on the first floor and so on.
 
Okay, thank you very much, I was sneaking up and I couldn't get over it.
but I was wondering, you can connect a text to the name of a block or its visibility that is displayed inside the window of that layout? so if I also have multiple floors inside a same design depending on the block I display in the layout window I could identify the plan or even the system depending on the library used.
 
No. it is impossible to detect block (xrif) visible at that time in the layout window unless (and here science fiction begins...) there is no loaded a lisp program that activates automatically (via reactors) whenever you change a layout... verify what is in the active window and then change value to a property set with _dwgprops. to that property will refer a data field inserted in the xrif of the cartiglio.
 
Thank you very much for the delucidation, but I don't know exactly where to start making a lisp like this.
But I wonder what would happen by doing a layout public and that would value in pdf printing.
 
Good evening I have a question:
but if I wanted the progressive numbering to be in front of xxx-pe-tav-im.
and then wanted to see 001 xxx-pe-tav-im

I can't figure out how to change the formula.

thanks in advance for the aid
 

Attachments

the elaborate list is made so,the progressive number is at the beginning,
I tried to change the lisp but it's not right.
 

Attachments

  • Immagine 2023-11-16.webp
    Immagine 2023-11-16.webp
    67.5 KB · Views: 9
Good evening I have a question:
but if I wanted the progressive numbering to be in front of xxx-pe-tav-im.
and then wanted to see 001 xxx-pe-tav-im

I can't figure out how to change the formula.

thanks in advance for the aid
 

Attachments

Forum statistics

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

Members online

No members online now.
Back
Top