Hello,
thanks for suggestion but I’m stucked.
It seems what you sent me is working partly but finally I cannot do what I want.
My problem is that we have more drawing frames in one file so we have more headers what has to fill in but with the same content, like on the picture.
This is a block with attributes. I wanted create an program which can copy the info like item number, drawing number etc. and fill in the other ones except the page nummber - its different.

What you give me routine is working but strangely. . I’ve filtered for "DESCRIPTION".
(defun C:block_SUBs (/ s sslen nameEntity data nameBlock ent blk rtn)
(setq s (ssget '((0 . "INSERT"))))
(setq sslen (sslength s))
(setq nameEntity (ssname s 0))
(setq data (entget nameEntity))
(setq nameBlock (cdr (assoc 2 data)))
(setq blk nameBlock)
(if (setq ent (tblobjname "block" blk))
(while (setq ent (entnext ent))
(if (equal (cdr (assoc 2 (entget ent))) "DESCRIPTION")
(progn
(princ (nth 1 (entget ent)))
(princ (nth 2 (entget ent)))
(princ (nth 3 (entget ent)))
(princ (nth 4 (entget ent)))
(princ (nth 5 (entget ent)))
(princ (nth 6 (entget ent)))
(princ (nth 7 (entget ent)))
(princ (nth 8 (entget ent)))
(princ (nth 9 (entget ent)))
(princ (nth 10 (entget ent)))
(princ (nth 11 (entget ent)))
(princ (nth 12 (entget ent)))
(princ (nth 13 (entget ent)))
(princ (nth 14 (entget ent)))
(princ (nth 15 (entget ent)))
(princ (nth 16 (entget ent)))
(princ (nth 17 (entget ent)))
(princ (nth 18 (entget ent)))
(princ (nth 19 (entget ent)))
(princ (nth 20 (entget ent)))
(princ (nth 21 (entget ent)))
(princ (nth 22 (entget ent)))
(princ (nth 23 (entget ent)))
(princ (nth 24 (entget ent)))
(princ (nth 25 (entget ent)))
(princ (nth 26 (entget ent)))
(princ (nth 27 (entget ent)))
(setq rtn (cons ent rtn))
)
)
)
)
(reverse rtn)
(princ rtn)
(princ)
) ;end defung
Your routine gives me an Entity name but in ti’s data is not to find the real name what I typed into the field "Drawing". So I cannot take the data and put it in the other two blocks.
I have an other program which can list all the parts of a block it gives me a different Entity name which contains it - marked yellow.

Finally I printed the whole list without filtering what your rutine gives me and I cannot find the this Entity name at all what this other program gives me.
So I’m stucked to go forward with my program.