<?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 Retrieve Partial Filename in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441494#M107526</link>
    <description>&lt;P&gt;I am creating a drawing title block which includes a box for project name.&amp;nbsp; Been doing some research and apparently you can use DIESEL expressions to extract a string of text from the filename to do this.&amp;nbsp; But not sure how to do it exactly as the examples I seen are not suited to my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case filename and path is in the following format X:\xxxxx yyyyyy\...\drawing.dwg.&amp;nbsp; xxxxx is always a five digit project number and yyyyyy is the project name which is a combination of numbers and letters with the number of characters changing.&amp;nbsp; I want to extract the yyyyyy part of the filename and put into the title block and refresh automatically.&amp;nbsp; I was thinking perhaps you can use the "\" character after YYYYYYY to determine the end of the project name.&amp;nbsp; Can someone kindly let me know what is the DIESEL expression for this?&amp;nbsp; Many thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 11:01:45 GMT</pubDate>
    <dc:creator>michael.leeVP72S</dc:creator>
    <dc:date>2020-04-14T11:01:45Z</dc:date>
    <item>
      <title>Retrieve Partial Filename</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441494#M107526</link>
      <description>&lt;P&gt;I am creating a drawing title block which includes a box for project name.&amp;nbsp; Been doing some research and apparently you can use DIESEL expressions to extract a string of text from the filename to do this.&amp;nbsp; But not sure how to do it exactly as the examples I seen are not suited to my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case filename and path is in the following format X:\xxxxx yyyyyy\...\drawing.dwg.&amp;nbsp; xxxxx is always a five digit project number and yyyyyy is the project name which is a combination of numbers and letters with the number of characters changing.&amp;nbsp; I want to extract the yyyyyy part of the filename and put into the title block and refresh automatically.&amp;nbsp; I was thinking perhaps you can use the "\" character after YYYYYYY to determine the end of the project name.&amp;nbsp; Can someone kindly let me know what is the DIESEL expression for this?&amp;nbsp; Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 11:01:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441494#M107526</guid>
      <dc:creator>michael.leeVP72S</dc:creator>
      <dc:date>2020-04-14T11:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Partial Filename</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441515#M107527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i think that - as much as i understand - you can by FIELD command do that .&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="cap.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/753873iE264B75EC6243A9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cap.jpg" alt="cap.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 11:11:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441515#M107527</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2020-04-14T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Partial Filename</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441535#M107528</link>
      <description>&lt;P&gt;Hi Imad,&lt;/P&gt;&lt;P&gt;Using FIELD command does not help as it returns either the filename or the path name or a combination of both with or without file extension.&amp;nbsp; I only need a partial string of the the path name.&amp;nbsp; Cheers.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 11:18:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441535#M107528</guid>
      <dc:creator>michael.leeVP72S</dc:creator>
      <dc:date>2020-04-14T11:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Partial Filename</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441800#M107529</link>
      <description>Editing Diesel expressions is covered in HELP, here are some examples (not exactly what you want but its enough to get you started) &lt;A href="https://forums.autodesk.com/t5/autocad-forum/editing-autocad-field-expression-or-diesel-expression-editing/td-p/8677645" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/editing-autocad-field-expression-or-diesel-expression-editing/td-p/8677645&lt;/A&gt;&lt;BR /&gt;and &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/diesel-expression-part-of-file-name/td-p/5425533" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/diesel-expression-part-of-file-name/td-p/5425533&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2020 13:02:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/m-p/9441800#M107529</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2020-04-14T13:02:01Z</dc:date>
    </item>
  </channel>
</rss>

