Jump to content

Recommended Posts

Posted

Good morning, I submit a problem to you that if it had a solution would solve problems on various topics, I will explain it to you using the creation of a list of pages as an example.

 

A file created to make a multi-page paper document uses a specific block (CARTIGLIO) to identify each individual page.

This block is obviously repeated as many times as needed and filled in appropriately for each time it is repeated because it contains:
- common attributes that never change
- identifying attributes that change for each block

 

Once the previous step is completed, you need to create a page list.

For this operation I have prepared another block (RIGA_ELENCO_PAGINE) which contains attributes that have the same label and message as those of the "page" block which are used to create the page list

 

Having made this boring premise, I ask directly:

Is it possible, after manually filling in the FOG attribute of the RIGA_ELENCO_PAGINE block, to automatically write the value of the TITLE attribute by extracting it from the CARTIGLIO block which has the FOG attribute filled in with the same value as the RIGA_ELENCO_PAGINE block?
Via datafield, dieseL or lisp...

 

Greetings

 

 

blocks with linked attributes.dwg

Posted

Have a look at this example, reads a block in a layout and gets certain attribute values by Tagname. You will need to edit code to suit, it does not have a field function but it is fast enough that just run again and erase old index.

 

Dwgindex.lsp

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...