<?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: Can I search for a block instance by it's anonymous name or handle? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151385#M6320</link>
    <description>&lt;P&gt;You are welcome…cheers!!!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 21:43:26 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2024-11-14T21:43:26Z</dc:date>
    <item>
      <title>Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13146413#M6312</link>
      <description>&lt;P&gt;I have a drawing with around 1500 dynamic block instances, each with multiple attributes. I have exported the attribute data to a spreadsheet. In addition to the attribute data I entered, ACAD automatically exported a column for "Handle" and a column for "block name" which typically is it's anonymous name. I'm checking my work on the spreadsheet and need to go back to some blocks to update their attributes where I made an error but can't figure out how to search for the "handle" or anonymous "block name" with QSELECT, only it's effective name. Is there a way I can search and select a block instance based on it's&amp;nbsp;"handle" or anonymous "block name"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 18:10:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13146413#M6312</guid>
      <dc:creator>cferriterF9DP9</dc:creator>
      <dc:date>2024-11-12T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13148890#M6313</link>
      <description>&lt;P&gt;I would recommend using the &lt;EM&gt;design center&lt;/EM&gt; feature in cad to find all the blocks within a specific file. This will present a list for you to select your block.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 20:57:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13148890#M6313</guid>
      <dc:creator>John_WilliamsSYKJ2</dc:creator>
      <dc:date>2024-11-13T20:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13148920#M6314</link>
      <description>&lt;P&gt;Unfortunately, the Design Center does not list every instance of the dynamic block. It's only listed once indicating that block is used in the file, but each of the 1500 instances with unique data are not listed separately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 21:21:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13148920#M6314</guid>
      <dc:creator>cferriterF9DP9</dc:creator>
      <dc:date>2024-11-13T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13149081#M6315</link>
      <description>&lt;P&gt;That depends on which program you are using.&amp;nbsp; For AutoCAD Architecture, if you select a dynamic block, right-click&amp;gt;select similar, then all insertions that share the same anonymous name are selected.&amp;nbsp; I believe that for base AutoCAD if you use select similar, then all of the dynamic blocks with the same block definition name (non-anonymous) are selected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 22:40:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13149081#M6315</guid>
      <dc:creator>Libbya</dc:creator>
      <dc:date>2024-11-13T22:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13149448#M6316</link>
      <description>&lt;P&gt;A few comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can (ssget '((0 . "INSERT"))) then check for "effective name".&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use (ssget '((0 . "INSERT")(cons 5&amp;nbsp; handle)))&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;(ssget '((0 . "INSERT")(cons 2&amp;nbsp; "**U23")))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:45:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13149448#M6316</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-11-16T04:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13150928#M6317</link>
      <description>&lt;P&gt;Thank you, can you please elaborate on how to use these commands? I had originally posted under the dynamic block forum but the post got moved here and I'm not familiar with what LISP is.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 18:06:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13150928#M6317</guid>
      <dc:creator>cferriterF9DP9</dc:creator>
      <dc:date>2024-11-14T18:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151308#M6318</link>
      <description>&lt;P&gt;Try &lt;STRONG&gt;zmh.lsp&lt;/STRONG&gt; which will prompt you for a handle. If block with attribute object is found will zoom into that location&amp;nbsp; to open the attribute editor highlighting block&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; zmh given handle zooms to location of block with attribute, opens attribute editor &amp;amp; highlights block object 
; OP:
; https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/td-p/13146413/jump-to/first-unread-message
(defun c:zmh (/ ed en handle)
 (vl-load-com)
; (setq handle (cdr(assoc 5 (entget(car(entsel)))))) ; select object to retrieve handle
 (while(not handle)
  (if(setq handle (getstring"\nEnter Handle: "))
   (if(zerop(strlen handle))(setq handle nil)) ; chk for characters entered
  ) ; if
 ) ; while
 (if(setq en (handent handle)) ; locate entity
  (if
   (and
    (eq "INSERT" (cdr (assoc 0 (setq ed (entget en))))) ; chk if it's a Block insert
    (cdr (assoc 66 ed)) ; there are attributes
   )   
   (progn
    (setvar "ctab" (cdr (assoc 410 ed))) ; change to that drawing space
    (command "_.Zoom" "_O" en "") ; zoom up to that location
    (command "_.Eattedit" en) ; open attribute editor
    (sssetfirst nil (ssadd en)) ; highlight the object
   ) ; progn
   (princ (strcat "\nEntity Handle: [" handle "] is NOT a BLOCK with Attributes."))
  )
  (princ (strcat "\nEntity Handle: [" handle "] Not Located."))
 ) ; if
 (princ) ; clean exit
) ; defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 21:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151308#M6318</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-14T21:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151380#M6319</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 21:41:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151380#M6319</guid>
      <dc:creator>cferriterF9DP9</dc:creator>
      <dc:date>2024-11-14T21:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I search for a block instance by it's anonymous name or handle?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151385#M6320</link>
      <description>&lt;P&gt;You are welcome…cheers!!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 21:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/can-i-search-for-a-block-instance-by-it-s-anonymous-name-or/m-p/13151385#M6320</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-14T21:43:26Z</dc:date>
    </item>
  </channel>
</rss>

