<?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: change attribute to filename in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954555#M85650</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I just look at this lisp again and realize you gave me two option.&amp;nbsp; the hardcode one worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for the thanks but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why an OP can accept their post as a solution&amp;nbsp;@Anonymous&amp;nbsp;&amp;nbsp;? Give credit where credit is due .. we're all scrappin for unsalted stale peanuts in a nonsensical world that gives us a number that...&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/test-1-question/m-p/8954554#M388392" target="_blank" rel="noopener"&gt; ha!&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 03:38:32 GMT</pubDate>
    <dc:creator>ronjonp</dc:creator>
    <dc:date>2019-08-08T03:38:32Z</dc:date>
    <item>
      <title>change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953784#M85639</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp; i posted this yesterday but it didnt seem to take so i will post again.&amp;nbsp; i am looking for a lisp that will change and attribute to the file name without the dwg extension.&amp;nbsp; can anyone help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 17:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953784#M85639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953895#M85640</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;@Anonymous&amp;nbsp; Something like ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/664936i1816A0C9BCEB5BA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="A.gif" alt="A.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 18:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953895#M85640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953899#M85641</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adding a field to attribute value would be more easy for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fn.png" style="width: 706px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/664937i524E0A79E346367C/image-size/large?v=v2&amp;amp;px=999" role="button" title="fn.png" alt="fn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 18:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953899#M85641</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-08-07T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953920#M85642</link>
      <description>&lt;P&gt;I was actually looking for a lisp routine that would do this.&amp;nbsp; but thanks for you suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 18:41:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953920#M85642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953937#M85643</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;@Anonymous&amp;nbsp; Any specific reason?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 18:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953937#M85643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T18:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953945#M85644</link>
      <description>&lt;P&gt;so I can use it on any drawing without have to go through the field process every time.&amp;nbsp; we get lots of drawings from clients that don't want us to mess around with any of there blocks. and it is so convenient if it is preloaded.&amp;nbsp; preferably I would like this without the file extension (dwg) if that is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 18:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953945#M85644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953960#M85645</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;That doesn't seem necessary to me.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:04:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8953960#M85645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954073#M85646</link>
      <description>&lt;P&gt;Maybe its more a "want" than a "need" but it is what I prefer.&amp;nbsp; do you know if this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954073#M85646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T20:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954172#M85647</link>
      <description>&lt;P&gt;Your request is kinda vague. What attribute .. is it a specific block? I agree that a field is the way to solve this:&lt;/P&gt;&lt;PRE&gt;(defun c:foo (/ e el)
  (if (and (setq e (car (nentsel))) (= "ATTRIB" (cdr (assoc 0 (setq el (entget e))))))
    ;; Field
    (entmod (subst '(1 . "%&amp;lt;\\AcVar Filename \\f \"%fn2\"&amp;gt;%") (assoc 1 el) el))
    ;; Hardcoded ( not recommended ) .. what if file gets renamed???
;;;    (entmod
;;;      (subst (cons 1 (substr (getvar 'dwgname) 1 (- (strlen (getvar 'dwgname)) 4))) (assoc 1 el) el)
;;;    )
  )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954172#M85647</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-07T20:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954197#M85648</link>
      <description>&lt;P&gt;I tried this and it just changes the attribute to ####.&amp;nbsp; I want to be able to use this for any attribute nothing specific.&amp;nbsp; I don't want it to be turned into a field.&amp;nbsp;&amp;nbsp; Just change the value of the attribute to the file name without the dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help with this.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:13:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954197#M85648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T21:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954242#M85649</link>
      <description>&lt;P&gt;I just look at this lisp again and realize you gave me two option.&amp;nbsp; the hardcode one worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for this.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 21:45:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954242#M85649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T21:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954555#M85650</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I just look at this lisp again and realize you gave me two option.&amp;nbsp; the hardcode one worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for the thanks but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why an OP can accept their post as a solution&amp;nbsp;@Anonymous&amp;nbsp;&amp;nbsp;? Give credit where credit is due .. we're all scrappin for unsalted stale peanuts in a nonsensical world that gives us a number that...&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/test-1-question/m-p/8954554#M388392" target="_blank" rel="noopener"&gt; ha!&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 03:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954555#M85650</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-08T03:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954563#M85651</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I tried this and it just changes the attribute to ####.&amp;nbsp; I want to be able to use this for any attribute nothing specific.&amp;nbsp; I don't want it to be turned into a field.&amp;nbsp;&amp;nbsp; Just change the value of the attribute to the file name without the dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help with this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;All you have to do is regen, It's based on your setting for FIELDEVAL variable. Don't hard code this!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 03:45:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8954563#M85651</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-08T03:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955210#M85652</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I just look at this lisp again and realize you gave me two option.&amp;nbsp; the hardcode one worked like a charm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you very much for this.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you for the thanks but...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand why an OP can accept their post as a solution&amp;nbsp;@Anonymous&amp;nbsp;&amp;nbsp;? Give credit where credit is due .. we're all scrappin for unsalted stale peanuts in a nonsensical world that gives us a number that...&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/test-1-question/m-p/8954554#M388392" target="_blank" rel="noopener"&gt; ha!&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&amp;nbsp; I did for you !!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:16:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955210#M85652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T11:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955534#M85653</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I just look at this lisp again and realize you gave me two option.&amp;nbsp; the hardcode one worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for this.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you for the thanks but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why an OP can accept their post as a solution&amp;nbsp;@Anonymous&amp;nbsp;&amp;nbsp;? Give credit where credit is due .. we're all scrappin for unsalted stale peanuts in a nonsensical world that gives us a number that...&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/test-1-question/m-p/8954554#M388392" target="_blank" rel="noopener"&gt; ha!&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp; I did for you !!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hahaha .. thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I still find it odd that you can mark your own posts as solutions.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:37:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955534#M85653</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-08T13:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955602#M85654</link>
      <description>&lt;P&gt;that was not my intention to accept my own post.&amp;nbsp; I meant to give credit to where due.&amp;nbsp; how can I change that?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:01:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955602#M85654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955613#M85655</link>
      <description>&lt;P&gt;thank you &lt;U&gt;&lt;FONT color="#0066cc"&gt;rperez&lt;/FONT&gt;&lt;/U&gt;&amp;nbsp; but I don't know how to change this.&amp;nbsp; can you please tell me and I will gladly accept yours as the solution.&amp;nbsp; I apologize for the mistake.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:06:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955613#M85655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T14:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955625#M85656</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;thank you &lt;U&gt;&lt;FONT color="#0066cc"&gt;rperez&lt;/FONT&gt;&lt;/U&gt;&amp;nbsp; but I don't know how to change this.&amp;nbsp; can you please tell me and I will gladly accept yours as the solution.&amp;nbsp; I apologize for the mistake.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No need to apologize .. I've seen it done a few times before ( probably on accident ). *cheers*&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:10:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/8955625#M85656</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-08-08T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/9646555#M85657</link>
      <description>&lt;P&gt;The best suggestion that I can provide for this type of issues is LongPathTool. Best of luck.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 12:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/9646555#M85657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: change attribute to filename</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/9648281#M85658</link>
      <description>&lt;P&gt;The quick version&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq ent (entget (car (nentsel "\npick att to change not block"))))
(setq dwg (getvar 'dwgname))
(entmod (subst (cons 1 dwg) (assoc 1 ent) ent))&lt;/LI-CODE&gt;&lt;LI-CODE lang="general"&gt;(vl-filename-base (getvar "dwgname"))

Otherwise you can use this:

(substr (setq str (getvar "dwgname")) 1 (- (strlen str) 4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 04:53:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-attribute-to-filename/m-p/9648281#M85658</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-07-22T04:53:43Z</dc:date>
    </item>
  </channel>
</rss>

