<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change multiple block attribute values in one click in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297560#M78591</link>
    <description>&lt;P&gt;GATTE doesn't work with Dynamic Blocks, unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 12:07:08 GMT</pubDate>
    <dc:creator>toolbox2</dc:creator>
    <dc:date>2021-05-07T12:07:08Z</dc:date>
    <item>
      <title>Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297346#M78589</link>
      <description>&lt;P&gt;I have a lot of drawings, each with one or more title blocks with attributes. I need to update the attribute values with some predefined values. The same values will be used in whichever title block I select within the drawing. The title blocks are dynamic blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the attribute and values will always be the same I thought I could customise a button to make this a one-click job for each title block that I select. Initially, I thought this could be accomplished with Lisp but then thought there must surely be an AutoCAD command I could use for this. But...I haven't found it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Express Tools command ATTIN looked hopeful. Put the tags and values in a text file and run the command. But how to execute this in one click? Need to pass the text file location and select the block without dialogue boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just not sure which way to go with this. Standard AutoCAD commands or Lisp. I'm unable to use scripts since&amp;nbsp; SCR files are prohibited on our locked down machines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be gratefully received.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 10:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297346#M78589</guid>
      <dc:creator>toolbox2</dc:creator>
      <dc:date>2021-05-07T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297440#M78590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/48767"&gt;@toolbox2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried the command "GATTE" (Global ATTribute Editor)? Using this command you can set a new value of the attribute globally inside the drawing&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 11:25:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297440#M78590</guid>
      <dc:creator>vinodkl</dc:creator>
      <dc:date>2021-05-07T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297560#M78591</link>
      <description>&lt;P&gt;GATTE doesn't work with Dynamic Blocks, unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297560#M78591</guid>
      <dc:creator>toolbox2</dc:creator>
      <dc:date>2021-05-07T12:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297773#M78592</link>
      <description>&lt;P&gt;If you are looking for "one click" solutions to change global title-block info (i.e. project name, client name, project number, etc.) then using the Sheet Set Manager is your best bet.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297773#M78592</guid>
      <dc:creator>murray-clack</dc:creator>
      <dc:date>2021-05-07T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297861#M78593</link>
      <description>&lt;P&gt;It would, wouldn't it? But not for this task facing me now.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 14:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10297861#M78593</guid>
      <dc:creator>toolbox2</dc:creator>
      <dc:date>2021-05-07T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300015#M78594</link>
      <description>&lt;P&gt;Maybe our attribute editor app &lt;A href="https://jtbworld.com/jtb-batchattedit" target="_blank" rel="noopener"&gt;JTB BatchAttEdit&lt;/A&gt; can help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 18:23:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300015#M78594</guid>
      <dc:creator>JTBWorld</dc:creator>
      <dc:date>2021-05-08T18:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300251#M78595</link>
      <description>&lt;P&gt;I would use an XREF for identical information shared across multiple files.&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 22:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300251#M78595</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2021-05-08T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300618#M78596</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using this - &lt;A href="https://www.kdmsoft.net/autoreplacecad.html" target="_blank" rel="noopener"&gt;AutoReplaceCAD&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 07:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10300618#M78596</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2021-05-09T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10302187#M78597</link>
      <description>&lt;P&gt;Thanks but the attribute values won't necessarily change for EVERY instance of a block, only the ones I select.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's looking like an AutoCAD command solution isn't out there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a modified GATTE command, GATTE2, on CadTutor.net. With some modification this looks hopeful.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 09:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10302187#M78597</guid>
      <dc:creator>toolbox2</dc:creator>
      <dc:date>2021-05-10T09:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10302204#M78598</link>
      <description>&lt;P&gt;As much as some people think, AutoCAD cannot read minds. Any one click solution would require an amount of coding that might take much longer to write and troubleshoot than it would be to do the task manually.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 10:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/10302204#M78598</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2021-05-10T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change multiple block attribute values in one click</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/13877631#M356690</link>
      <description>&lt;P&gt;Here is the my lisp for multiple attribute changer that ChatGPT made.&lt;/P&gt;&lt;P&gt;1. Save it to XXX.lsp in Notepad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;; ------------------------------------------------------------&lt;BR /&gt;;; ATTBATCH — Batch-edit Attribute values on selected INSERTs&lt;BR /&gt;;; ------------------------------------------------------------&lt;BR /&gt;;; What it does&lt;BR /&gt;;; Updates Attribute VALUE (DXF code 1) for the chosen TAG on&lt;BR /&gt;;; every selected block reference (entity type: INSERT).&lt;BR /&gt;;;&lt;BR /&gt;;; Command&lt;BR /&gt;;; ATTBATCH&lt;BR /&gt;;;&lt;BR /&gt;;; Usage&lt;BR /&gt;;; 1) Load with APPLOAD.&lt;BR /&gt;;; 2) Type ATTBATCH.&lt;BR /&gt;;; 3) Enter the Attribute TAG to change.&lt;BR /&gt;;; - Type "*" (just an asterisk) to update ALL tags.&lt;BR /&gt;;; - Otherwise only the matching TAG (case-insensitive) is changed.&lt;BR /&gt;;; 4) Enter the NEW value to apply.&lt;BR /&gt;;; 5) Select target block references (INSERT). Press Enter to finish.&lt;BR /&gt;;;&lt;BR /&gt;;; Notes&lt;BR /&gt;;; - Constant Attributes (from ATTDEF set to Constant) aren’t present&lt;BR /&gt;;; on instances; edit the block definition and then run ATTSYNC for those.&lt;BR /&gt;;; - If an Attribute had a Field, it will be replaced by plain text.&lt;BR /&gt;;; - Works with MINSERT: each instance is processed.&lt;BR /&gt;;; - Pure AutoLISP only: compatible with environments lacking VLA/ActiveX.&lt;BR /&gt;;;&lt;BR /&gt;;; Change log&lt;BR /&gt;;; - Only treats "*" as “all tags”. A real TAG string updates that TAG only.&lt;BR /&gt;;; ------------------------------------------------------------&lt;/P&gt;&lt;P&gt;(defun c:ATTBATCH (/ _equal-ci _collect-attribs&lt;BR /&gt;tag new ss i ent cnt&lt;BR /&gt;lst a dxf atag doAll)&lt;/P&gt;&lt;P&gt;;; Case-insensitive compare&lt;BR /&gt;(defun _equal-ci (s1 s2) (= (strcase s1) (strcase s2)))&lt;/P&gt;&lt;P&gt;;; Collect ATTRIB entities following an INSERT until SEQEND&lt;BR /&gt;(defun _collect-attribs (ins / e typ acc)&lt;BR /&gt;(setq e (entnext ins))&lt;BR /&gt;(while (and e&lt;BR /&gt;(setq typ (cdr (assoc 0 (entget e))))&lt;BR /&gt;(/= typ "SEQEND"))&lt;BR /&gt;(if (= typ "ATTRIB") (setq acc (cons e acc)))&lt;BR /&gt;(setq e (entnext e))&lt;BR /&gt;)&lt;BR /&gt;(reverse acc)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Inputs&lt;BR /&gt;(setq tag (getstring T "\nEnter Attribute TAG to change (* = all): "))&lt;BR /&gt;(if (null tag) (setq tag ""))&lt;BR /&gt;(setq new (getstring T "\nEnter new Attribute value: "))&lt;BR /&gt;(if (null new) (setq new ""))&lt;/P&gt;&lt;P&gt;;; ONLY treat as 'all' when the user typed "*" exactly&lt;BR /&gt;(setq doAll (= (strcase tag) "*"))&lt;/P&gt;&lt;P&gt;(prompt "\nSelect block references (INSERT): ")&lt;BR /&gt;(setq ss (ssget '((0 . "INSERT"))))&lt;/P&gt;&lt;P&gt;(if ss&lt;BR /&gt;(progn&lt;BR /&gt;;; optional: group into one undo step (pure command call)&lt;BR /&gt;(command "_.UNDO" "_Begin")&lt;/P&gt;&lt;P&gt;(setq cnt 0&lt;BR /&gt;i 0)&lt;BR /&gt;(while (&amp;lt; i (sslength ss))&lt;BR /&gt;(setq ent (ssname ss i))&lt;BR /&gt;(setq lst (_collect-attribs ent))&lt;/P&gt;&lt;P&gt;;; Process each ATTRIB&lt;BR /&gt;(while lst&lt;BR /&gt;(setq a (car lst)&lt;BR /&gt;dxf (entget a)&lt;BR /&gt;;; TAG = code 2, VALUE = code 1&lt;BR /&gt;atag (cdr (assoc 2 dxf)))&lt;BR /&gt;(if (or doAll&lt;BR /&gt;(_equal-ci atag tag))&lt;BR /&gt;(progn&lt;BR /&gt;;; Update value (code 1); add if missing&lt;BR /&gt;(if (assoc 1 dxf)&lt;BR /&gt;(setq dxf (subst (cons 1 new) (assoc 1 dxf) dxf))&lt;BR /&gt;(setq dxf (append dxf (list (cons 1 new))))&lt;BR /&gt;)&lt;BR /&gt;(entmod dxf)&lt;BR /&gt;(setq cnt (1+ cnt))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(setq lst (cdr lst))&lt;BR /&gt;)&lt;BR /&gt;;; Refresh display for the block reference&lt;BR /&gt;(entupd ent)&lt;BR /&gt;(setq i (1+ i))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(command "_.UNDO" "_End")&lt;BR /&gt;(princ (strcat "\nDone: updated " (itoa cnt) " Attribute(s)."))&lt;BR /&gt;)&lt;BR /&gt;(prompt "\nSelection canceled.")&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 06:12:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-multiple-block-attribute-values-in-one-click/m-p/13877631#M356690</guid>
      <dc:creator>Bertrandick</dc:creator>
      <dc:date>2025-11-03T06:12:22Z</dc:date>
    </item>
  </channel>
</rss>

