<?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: Lisp to remove text from a selected block attribute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906380#M49801</link>
    <description>&lt;P&gt;Agree with Ronjonp using tagname probably a multi version v's a single pick, just get tagname and block name using Nentsel, then use a simple ssget to choose blocks to be changed. A single block would still work.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 03:42:31 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2022-01-26T03:42:31Z</dc:date>
    <item>
      <title>Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905233#M49792</link>
      <description>&lt;P&gt;I have some blocks with multiple attributes pre-filled out. Is there a way to remove the text from an attribute I select by clicking on it? I know I can edit the attribute to delete the text, or view the properties and edit that way. I'm hoping to eliminate opening, then editing, then closing the attribute editor when i just need the text deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I love Lee Mac's Copy Text command, as it sees the text you select regardless of whether its in a block or attribute of whatever. Is there a lisp like that, but instead of Copying the text it deletes it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~nic&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 18:07:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905233#M49792</guid>
      <dc:creator>neabailey</dc:creator>
      <dc:date>2022-01-25T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905275#M49793</link>
      <description>&lt;P&gt;If you don't want the editor to pop up hold down CNTRL then double click on the attribute to edit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some quick code to do multiple ... you'll have to supply the tag names that are to be edited.&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ s tags)
  ;; Edit this list to your needs
  (setq tags '("TAGNAME1" "TAGNAME2" "TAGNAME2"))
  (if (setq s (ssget ":L" '((0 . "INSERT") (66 . 1))))
    (foreach e (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
      (foreach tag tags (vl-catch-all-apply 'setpropertyvalue (list e tag "")))
    )
  )
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Jan 2022 18:28:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905275#M49793</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-01-25T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905608#M49794</link>
      <description>Thanks for that suggestion!! I have no idea why thats the first I've heard of it. It'll be awesome for editing, however it won't allow a complete deletion of the text. Not sure why but when you use the control key (ATTIPEDIT) it wont allow for the attribute to be empty.&lt;BR /&gt;&lt;BR /&gt;for the lisp, is there a way to make one that isn't "Tag name" dependent? My hope is to be able to type the command prompt, and select the text I need deleted, one attribute at a time, not all at once. That way it'll work with the many blocks with attribute I have.&lt;BR /&gt;&lt;BR /&gt;For Example, one block has 35 attributes, and I might need 6 attributes emptied. And the next one might need 20 other ones deleted.</description>
      <pubDate>Tue, 25 Jan 2022 20:20:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905608#M49794</guid>
      <dc:creator>neabailey</dc:creator>
      <dc:date>2022-01-25T20:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905702#M49795</link>
      <description>&lt;P&gt;@&lt;SPAN class="UserName lia-user-name lia-user-rank-Explorer lia-component-message-view-widget-author-username"&gt;&lt;A id="link_18" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9887674" target="_self" aria-label="View Profile of neabailey"&gt;&lt;SPAN class=""&gt;neabailey&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;Give the attached a try, read the top of the LISP for limitations and other info&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905702#M49795</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2022-01-25T20:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905734#M49796</link>
      <description>&lt;P&gt;This should do the trick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:AttEmpty ( / e)
  (while (setq e (car (nentsel "Pick attribute: ")))
    (setpropertyvalue (cdr (assoc 330 (entget e))) (cdr (assoc 2 (entget e))) ""))
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:53:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905734#M49796</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-01-25T20:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905745#M49797</link>
      <description>Ive seen that lisp before, but it empties all the attributes not just the one i pick.</description>
      <pubDate>Tue, 25 Jan 2022 20:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905745#M49797</guid>
      <dc:creator>neabailey</dc:creator>
      <dc:date>2022-01-25T20:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905749#M49798</link>
      <description>Yesss!!!!&lt;BR /&gt;This was exactly what I was looking for. Thank you for this!&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10905749#M49798</guid>
      <dc:creator>neabailey</dc:creator>
      <dc:date>2022-01-25T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906159#M49799</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9887674"&gt;@neabailey&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yesss!!!!&lt;BR /&gt;This was exactly what I was looking for. Thank you for this!&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;FWIW, If you don't want to pick each attribute, the code I provided above could prove to be much more efficient if you supply the correct tag names to process.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 00:51:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906159#M49799</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-01-26T00:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906377#M49800</link>
      <description>&lt;P&gt;Setproperty does not work with Bricscad so entmod would be better. Or the VL-put-textstring.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 03:39:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906377#M49800</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-01-26T03:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906380#M49801</link>
      <description>&lt;P&gt;Agree with Ronjonp using tagname probably a multi version v's a single pick, just get tagname and block name using Nentsel, then use a simple ssget to choose blocks to be changed. A single block would still work.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 03:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10906380#M49801</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-01-26T03:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to remove text from a selected block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10908195#M49802</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt; &amp;amp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&lt;BR /&gt;The Problem is the tags that need clearing are different for every block inserted, its based on the current project design, so a tag based delete wouldn't be more efficient because it is different everytime. The Lisp &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; provided is a perfect solution for what I needed.</description>
      <pubDate>Wed, 26 Jan 2022 17:11:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-remove-text-from-a-selected-block-attribute/m-p/10908195#M49802</guid>
      <dc:creator>neabailey</dc:creator>
      <dc:date>2022-01-26T17:11:38Z</dc:date>
    </item>
  </channel>
</rss>

