<?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: Selecting a block inside the table and updating value in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/selecting-a-block-inside-the-table-and-updating-value/m-p/13272612#M4136</link>
    <description>&lt;P&gt;You can get at the attribute in a couple of ways, the 1st is to use NENTSEL and pick the attribute in the table this exposes that attribute directly and you can change its value. See code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second is to get the cell and the object inside then work through the object and change the attribute number. This is maybe more useful in a big table.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:wow ( / obj str)
  (setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nPick object "))))
  (setq str (getstring "\nEnter new number "))
  (vlax-put obj 'Textstring str)
  (command "regen")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 02:52:44 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2025-01-21T02:52:44Z</dc:date>
    <item>
      <title>Selecting a block inside the table and updating value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/selecting-a-block-inside-the-table-and-updating-value/m-p/13272452#M4135</link>
      <description>&lt;P&gt;I’m new to Lisp and looking for some guidance on a problem I’m trying to solve.&lt;/P&gt;&lt;P&gt;I have a block in my drawing named NOTE SHEET 02. This block serves as a drawing note and contains a numbered circle (NOTE CIRCLE) inside autocad table. The number in the circle reflects the block’s suffix (in this case, 02 → 2).&lt;/P&gt;&lt;P&gt;If there is no block named NOTE SHEET 01&amp;nbsp;inside the drawing, i want to rename NOTE SHEET 02 to NOTE SHEET 01&amp;nbsp;and update the NOTE CIRCLE block inside the table to change its number from 2 to 1.&lt;/P&gt;&lt;P&gt;I have no idea how to access the NOTE CIRCLE block inside the AutoCAD table and update its value in lisp.&lt;/P&gt;&lt;P&gt;I’d greatly appreciate any advice. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 00:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/selecting-a-block-inside-the-table-and-updating-value/m-p/13272452#M4135</guid>
      <dc:creator>BranoFRXKW</dc:creator>
      <dc:date>2025-01-21T00:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a block inside the table and updating value</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/selecting-a-block-inside-the-table-and-updating-value/m-p/13272612#M4136</link>
      <description>&lt;P&gt;You can get at the attribute in a couple of ways, the 1st is to use NENTSEL and pick the attribute in the table this exposes that attribute directly and you can change its value. See code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second is to get the cell and the object inside then work through the object and change the attribute number. This is maybe more useful in a big table.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:wow ( / obj str)
  (setq obj (vlax-ename-&amp;gt;vla-object (car (nentsel "\nPick object "))))
  (setq str (getstring "\nEnter new number "))
  (vlax-put obj 'Textstring str)
  (command "regen")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 02:52:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/selecting-a-block-inside-the-table-and-updating-value/m-p/13272612#M4136</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-01-21T02:52:44Z</dc:date>
    </item>
  </channel>
</rss>

