<?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 Select all objects with specific hyperlink in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12857819#M12483</link>
    <description>&lt;P&gt;Hey guys, I'm trying to create a selection set with all objects with a specific hyperlink.&lt;/P&gt;&lt;P&gt;Through commands I can do it through qselect but i figured that won't work in a lisp.&lt;/P&gt;&lt;P&gt;I've looked online but I can't seem to find anything. Can someone please help me?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 11:32:35 GMT</pubDate>
    <dc:creator>S_v_d_Markt</dc:creator>
    <dc:date>2024-06-24T11:32:35Z</dc:date>
    <item>
      <title>Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12857819#M12483</link>
      <description>&lt;P&gt;Hey guys, I'm trying to create a selection set with all objects with a specific hyperlink.&lt;/P&gt;&lt;P&gt;Through commands I can do it through qselect but i figured that won't work in a lisp.&lt;/P&gt;&lt;P&gt;I've looked online but I can't seem to find anything. Can someone please help me?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 11:32:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12857819#M12483</guid>
      <dc:creator>S_v_d_Markt</dc:creator>
      <dc:date>2024-06-24T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858768#M12484</link>
      <description>&lt;P&gt;Can you attached example drawing&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 19:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858768#M12484</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2024-06-24T19:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858971#M12485</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13407759"&gt;@S_v_d_Markt&lt;/a&gt;&amp;nbsp;AFAIK you can't directly filter further than the registered app name. This will select all items ( not nested ) that have a hyperlink and will check if it matches the supplied URL and will create a selection set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ hl s)
  ;; RJP » 2024-06-24
  (cond	((setq s (ssget "_X" '((-3 ("PE_URL")))))
	 ;; Put in your URL here
	 (setq hl (strcase "http://www.google.com"))
	 (foreach e (mapcar 'cadr (ssnamex s))
	   (or (wcmatch hl (strcase (cdadr (cadr (assoc -3 (entget e '("PE_URL"))))))) (ssdel e s))
	 )
	 (sssetfirst nil s)
	)
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 23:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858971#M12485</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2024-06-24T23:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858987#M12486</link>
      <description>&lt;P&gt;try attached &lt;STRONG&gt;HplFnd.lsp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 04:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12858987#M12486</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-06-25T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12859656#M12487</link>
      <description>&lt;P&gt;Thank you so much! this is exactly what i was looking for! Only thing is that this selects across different layouts, is it possible to change this to only search in the current layout?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 08:59:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12859656#M12487</guid>
      <dc:creator>S_v_d_Markt</dc:creator>
      <dc:date>2024-06-25T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12859657#M12488</link>
      <description>Thank you for the reply, This almost does what i want, i'd like to specify the hyper link in the lisp.</description>
      <pubDate>Tue, 25 Jun 2024 08:46:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12859657#M12488</guid>
      <dc:creator>S_v_d_Markt</dc:creator>
      <dc:date>2024-06-25T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12860206#M12489</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13407759"&gt;@S_v_d_Markt&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you so much! this is exactly what i was looking for! Only thing is that this selects across different layouts, &lt;STRONG&gt;is it possible to change this to only search in the current layout&lt;/STRONG&gt;?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13407759"&gt;@S_v_d_Markt&lt;/a&gt;&amp;nbsp;Give this a try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ hl s)
  ;; RJP » 2024-06-25
  (cond	((setq s (ssget "_X" (list (cons 410 (getvar 'ctab)) '(-3 ("PE_URL")))))
	 ;; Put in your URL here
	 (setq hl (strcase "http://www.google.com"))
	 (foreach e (mapcar 'cadr (ssnamex s))
	   (or (wcmatch hl (strcase (cdadr (cadr (assoc -3 (entget e '("PE_URL"))))))) (ssdel e s))
	 )
	 (sssetfirst nil s)
	)
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 14:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12860206#M12489</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2024-06-25T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select all objects with specific hyperlink</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12860331#M12490</link>
      <description>&lt;P&gt;attached is updated code&lt;/P&gt;&lt;P&gt;change the URL in the code here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1719326509577.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1379769i0C376A14F04EC7CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1719326509577.png" alt="paullimapa_0-1719326509577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 14:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-objects-with-specific-hyperlink/m-p/12860331#M12490</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-06-25T14:41:59Z</dc:date>
    </item>
  </channel>
</rss>

