<?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: Update Block Definition without ATTSYNC in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873336#M167651</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8730383"&gt;@Fredrik.Karlsson2VZLJ&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BATTMAN (or ATTSYNC) command update only the attributes of block (and that's&amp;nbsp; include attributes position)&lt;/P&gt;&lt;P&gt;where the BEDIT (Block Edit) command, handles the block definition (geometry). inside Block Edit session you can change the attributes but as you exist, the update process (regen) does not touch the attributes only BATTMAN (ATTSYNC) does that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2025 11:20:51 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2025-10-30T11:20:51Z</dc:date>
    <item>
      <title>Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873131#M167647</link>
      <description>&lt;P&gt;I have the need to change the layers of the genometry inside a block definitions in order for the blocks to work with vpFreeze. The provided code works but I have to run ATTSYNC, which I can not do because all, or most, at least in my case, attributes will be returned to the orginal position which creates a way to big of a problem. How can I, if it is even possible, update the Block Definiton via the code so I dont have to use ATTSYNC?&lt;BR /&gt;Im using AutoCAD Lt 2024, and the blocks that are subject for this code contains attributes and visiblity states. An example block is providede in the attached dwg file. To clearify I am a noob in terms of AutoLisp but half decent AutoCAD user.&lt;BR /&gt;&lt;BR /&gt;Update 2025-10-30:&lt;BR /&gt;Doing the same thing by going into the block editor for each Block Def. and changing the genometry layer works just fine without ATTSYNC&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 11:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873131#M167647</guid>
      <dc:creator>Fredrik.Karlsson2VZLJ</dc:creator>
      <dc:date>2025-10-30T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873336#M167651</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8730383"&gt;@Fredrik.Karlsson2VZLJ&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BATTMAN (or ATTSYNC) command update only the attributes of block (and that's&amp;nbsp; include attributes position)&lt;/P&gt;&lt;P&gt;where the BEDIT (Block Edit) command, handles the block definition (geometry). inside Block Edit session you can change the attributes but as you exist, the update process (regen) does not touch the attributes only BATTMAN (ATTSYNC) does that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 11:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873336#M167651</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-10-30T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873394#M167654</link>
      <description>&lt;P&gt;So when the block editor exits it runs regen?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 12:11:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873394#M167654</guid>
      <dc:creator>Fredrik.Karlsson2VZLJ</dc:creator>
      <dc:date>2025-10-30T12:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873450#M167657</link>
      <description>&lt;P&gt;YES and only the block geometric is update.&lt;/P&gt;&lt;P&gt;this &lt;SPAN&gt;behavior is known in AutoCAD since it's born (previous century around 1982)&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and why is that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in these old days attributes where the only way to store textual data in a drawing to create BOM (Bill of Materials)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(no xdata, no Extended Data no Dictionaries where around) so careless Automatic updating blocks could led to&amp;nbsp;disruption of BOM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so AutoCAD gave us BATTMAN\ATTSYNC command to handle attributes separately and even today these commands&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;does not touch the attribute value (only the graphics properties e.g position, layer, color, text size, text style and text angle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 12:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13873450#M167657</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-10-30T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13874127#M167686</link>
      <description>&lt;P&gt;Perhaps we can all gain some insight from the code in the free open source &lt;STRONG&gt;AttRedef.lsp&lt;/STRONG&gt; packaged with AutoCAD since Release 10.&lt;/P&gt;&lt;P&gt;I briefly introduced this in my first &lt;STRONG&gt;Free Samples&lt;/STRONG&gt; article here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issuu.com/augi/docs/aw202302hr/36" target="_blank"&gt;AUGIWORLD by AUGI, Inc. - Issuu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 19:12:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13874127#M167686</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-10-30T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13877744#M167743</link>
      <description>&lt;P&gt;I tested doing REGEN and REGENALL manully and also adding&amp;nbsp;&amp;nbsp;(vla-regen doc acAllViewports) and the end of of the function, that moves the block geomentry to another layer,&amp;nbsp; but nothing I tried works. I still cant get the block genometry to be frozen when the layer is frozen.&lt;BR /&gt;&lt;BR /&gt;Is it possbile using LISP to redefine the blocks from the tool palette which is the idea anyways?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 10:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13877744#M167743</guid>
      <dc:creator>Fredrik.Karlsson2VZLJ</dc:creator>
      <dc:date>2025-11-03T10:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13877985#M167747</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8730383"&gt;@Fredrik.Karlsson2VZLJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8730383"&gt;@Fredrik.Karlsson2VZLJ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I tested doing REGEN and REGENALL manully and also adding&amp;nbsp;&amp;nbsp;(vla-regen doc acAllViewports) and the end of of the function, &lt;FONT color="#0000FF"&gt;that moves the block geomentry to another layer&lt;/FONT&gt;,&amp;nbsp; &lt;FONT color="#FF0000"&gt;but nothing I tried works. I still cant get the block genometry to be frozen when the layer is frozen.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Is it possbile using LISP to redefine the blocks from the tool palette which is the idea anyways?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;first you say it works&lt;/P&gt;&lt;P&gt;next it does not&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Editing the block with BEDIT than exit using save will drags auto regenerating drawing which update all that block references (but not the attributes)&lt;/P&gt;&lt;P&gt;if in BEDIT you changed an object layer (not attribute) this will reflect after regen. any object on frozen\off layer will be hidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does that more clear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 10:46:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13877985#M167747</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-11-03T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13878158#M167754</link>
      <description>&lt;P&gt;What works is that the LISP function moves the geometry to another layer, i.e. MyLayer. When the function is done and when you freeze the layer, in this case MyLayer, the geomentry does not get frozen.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Doing the same thing, on the same block, in the same drawing, manualy, meaning going into the block editor, selecting the geometry and changing its layer, exiting the block editor, and then freezing the layer, in this case MyLayer, freeze the geometry works as intended, meaning the manual way works, the Lisp function does not.&lt;BR /&gt;&lt;BR /&gt;After some more testing it seems to be related to block references meaning blocks with a, as i understand it, hidden name like *U310&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 06:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13878158#M167754</guid>
      <dc:creator>Fredrik.Karlsson2VZLJ</dc:creator>
      <dc:date>2025-11-04T06:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13879722#M167782</link>
      <description>&lt;P&gt;If you're only changing layers of block geometry, just:&lt;/P&gt;&lt;P&gt;Use BEDIT&lt;BR /&gt;Change the layer of geometry&lt;BR /&gt;Save and exit&lt;BR /&gt;No need to run ATTSYNC, and no attribute positions will be disturbed.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 06:09:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13879722#M167782</guid>
      <dc:creator>truongyen2442y</dc:creator>
      <dc:date>2025-11-04T06:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update Block Definition without ATTSYNC</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13880081#M167784</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8730383"&gt;@Fredrik.Karlsson2VZLJ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think i have it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your problem is with this block reference \ insert, delete it and reinsert&lt;/P&gt;&lt;P&gt;changing a dynamic block after creation some times have problems with the already inserts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 10:33:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/update-block-definition-without-attsync/m-p/13880081#M167784</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-11-04T10:33:26Z</dc:date>
    </item>
  </channel>
</rss>

