<?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: cannot remove attributes in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018148#M232059</link>
    <description>Ranjit,&lt;BR /&gt;Thank you. It appears that your routine will do the job, but I don't know how to create the function that ACAD can call. Can you give me a few pointers on that, or give me the search word that will take me to ACAD instructions?&lt;BR /&gt;Michael</description>
    <pubDate>Fri, 14 Apr 2017 21:08:46 GMT</pubDate>
    <dc:creator>mkrones</dc:creator>
    <dc:date>2017-04-14T21:08:46Z</dc:date>
    <item>
      <title>cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003056#M232051</link>
      <description>&lt;P&gt;We collect field survey data using a Trimble handheld GPS datalogger. We export&amp;nbsp;DXF files from Trimble Pathfinder Office (PFO). The logged points are exported as DWG blocks. The blocks appear in the DWG that we create from the exported DXF as points with attributes. We update the appearance using a block of the same name from our library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything looks good, but we can't get rid of the attributes. (We need some of those attributes but eventually need the drawing to be cleared of them.) These attributes appear when we double-click a block, but not when we edit the block, so we can't simply delete the attributes from the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've tried wblock, writing out all instances of the offending block to a new DWG. The blocks in that new, daughter DWG (all of them are the same) retain their attributes as in the parent drawing. Unfortunately, they lose the annotative characteristic, but that's a manageable problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We then delete all instances of that block from the parent drawing, purge, audit, and insert the daughter DWG into the parent. The result is that all instances of the block now appear as a point, not annotative, and still with the nonsense attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the block that is exported from PFO to DXF has some inherent properties that we cannot modify. A work-around, which is getting tedious, is to use the PFO DWG as an xref to the parent, and insert the desired block into the parent at the coordinates of each instance of the offending block.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003056#M232051</guid>
      <dc:creator>mkrones</dc:creator>
      <dc:date>2017-04-07T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003213#M232052</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33319"&gt;@mkrones&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps I am misunderstanding but...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you use &lt;STRONG&gt;&lt;U&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Core/files/GUID-40613EEB-3049-4B39-AD1D-457146EEE0CB-htm.html" target="_blank"&gt;BATTMAN&lt;/A&gt; &lt;/U&gt;&lt;/STRONG&gt;to edit the block and remove any attributes that you do not want to rain and then use Sync? You are welcome to attach a sample drawing file and tell me which attributes you don't want. I am happy to explore some options for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I missed the intent of your question perhaps you can phrase it differently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:02:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003213#M232052</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-04-07T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003261#M232053</link>
      <description>BATTMAN does not list the offending block as having attributes.&lt;BR /&gt;A portion of the DWG containing several instances of the block is attached.&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 07 Apr 2017 16:21:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003261#M232053</guid>
      <dc:creator>mkrones</dc:creator>
      <dc:date>2017-04-07T16:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003268#M232054</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see an attachment. Make sure to add it through a web browser and not through email.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:25:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7003268#M232054</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-04-07T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7014745#M232055</link>
      <description>&lt;P&gt;Please see the attached DWG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 12:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7014745#M232055</guid>
      <dc:creator>mkrones</dc:creator>
      <dc:date>2017-04-13T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7016772#M232056</link>
      <description>Do you need a statement or one of three solutions?&lt;BR /&gt;&lt;BR /&gt;Short way: Seperate inserts like your example.dwg, use command LAYDEL to delete all objects who reference that layer.&lt;BR /&gt;&lt;BR /&gt;-&lt;BR /&gt;&lt;BR /&gt;PS: It's your block, so you can add an attdef and attsync work</description>
      <pubDate>Fri, 14 Apr 2017 08:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7016772#M232056</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-04-14T08:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7017193#M232057</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33319"&gt;@mkrones&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Please see the attached DWG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Michael, try the below routine. It worls on the attached dwg. See screencast.&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/)
 (mapcar '(lambda (x) (foreach i (vlax-invoke (vlax-ename-&amp;gt;vla-object x) 'getattributes) (vla-delete i)))
	 (vl-remove-if 'listp (mapcar 'cadr (ssnamex (ssget '((0 . "INSERT")))))))
 (princ))&lt;/PRE&gt;
&lt;P&gt;&lt;IFRAME width="696" height="685" src="https://screencast.autodesk.com/Embed/Timeline/490055b8-9ea3-4c47-825a-2cd3d6582e50" frameborder="0" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7017193#M232057</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-04-14T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7017214#M232058</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I exploded one of your blocks. I then used LAYDEL to remove the&amp;nbsp;IR-RCV150 layer and I then purged the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this work for you?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 14:21:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7017214#M232058</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2017-04-14T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018148#M232059</link>
      <description>Ranjit,&lt;BR /&gt;Thank you. It appears that your routine will do the job, but I don't know how to create the function that ACAD can call. Can you give me a few pointers on that, or give me the search word that will take me to ACAD instructions?&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 14 Apr 2017 21:08:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018148#M232059</guid>
      <dc:creator>mkrones</dc:creator>
      <dc:date>2017-04-14T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018150#M232060</link>
      <description>Ranjit,&lt;BR /&gt;Thank you. It appears that your routine will do the job, but I don't know how to create the function that ACAD can call. Can you give me a few pointers on that, or give me the search word that will take me to ACAD instructions?&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 14 Apr 2017 21:09:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018150#M232060</guid>
      <dc:creator>mkrones</dc:creator>
      <dc:date>2017-04-14T21:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: cannot remove attributes</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018176#M232061</link>
      <description>&lt;P&gt;Michael, follow below steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Double click in&amp;nbsp;the code window (kind of grey window above my screencast) and it should select all&amp;nbsp;my code (you will see it highlighted).&lt;/LI&gt;
&lt;LI&gt;Hit CTRL+C to copy the code.&lt;/LI&gt;
&lt;LI&gt;Start notepad and paste the code in the file.&lt;/LI&gt;
&lt;LI&gt;Save the file as a .lsp file (note that when you save, select "all files" in the 'save as type'&amp;nbsp;option and&amp;nbsp;under filename&amp;nbsp;specify the extension as well, example &lt;EM&gt;somefunc.lsp&lt;/EM&gt;).&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;In AutoCAD type "appload". In the Load/Unload application&amp;nbsp;window select the newly created lisp file and select load.&lt;/LI&gt;
&lt;LI&gt;Before closing the Load/Unload application&amp;nbsp;window, click on contents under Startup Suite and add the same file (this will make sure AutoCAD remembers the command when you start AutoCAD next time, so you do not have to appload it again).&lt;/LI&gt;
&lt;LI&gt;Close out of the Load/Unload Application window.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You should be done. Type somefunc at command prompt. See &lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Customization/files/GUID-4E633A41-30EA-4C6B-ABC5-11F58970E1EE-htm.html" target="_blank"&gt;this&lt;/A&gt; link and the related topics section in there for more help. Let me know if you run in any issues. Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 21:24:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/cannot-remove-attributes/m-p/7018176#M232061</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-04-14T21:24:34Z</dc:date>
    </item>
  </channel>
</rss>

