Modify one attribute value and width factor in a block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I’d like to modify one attribute value and width factor in a block, for example, I need change the attribute value from “MASTER MAP” to “ASSUMED TELUS COMMUNICATIONS CABLE MASTER MAP” in the block, also I need change width factor to 0.7 to suit the space. Since I need repeat doing this adjustment for many drawing, so I am looking for a lisp can quickly do the change,
I searched and find below code
(defun c:CH_ATTR_WIDTH ( / new_width atent atent_list)
(setq new_width (getreal "\nEnter new width factor: "))
(setq atent (car (nentsel "\nSelect multiline attribute to change width factor: ")))
(setq atent_list (entget atent))
(setq atent_list (subst (cons 41 new_width) (assoc 41 atent_list) atent_list ))
(entmod atent_list)
(princ)
)
From https://forums.autodesk.com/t5/autocad-forum/width-factor-of-multiline-attribute/td-p/3896512
It can only change the width factor.
I attached the cad file with the block TITLE.
Highly appreciate if anyone can help.
Thank very much in advance.
Bin