<?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 Extracting filename to field in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762256#M141097</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for a way to extract a portion of the full filename of my drawings to a field for my titleblock on drawings. I can use DIESEL to extract part of it but am trying to figure out how to extract a portion of the filename UP TO BUT NOT INCLUDING the first space in the name. Example file names are as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LUIB_A-101&lt;/STRONG&gt; FIRST FLOOR PLAN&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LUIB_S-101A&lt;/STRONG&gt; STRUCTURAL FLOOR PLAN AREA 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to extract is the bold portion of the file name, but this portion is not consistent in length. I am not sure how to accomplish this and would love some guidance on this issue. If they were the same length every time a simple DIESEL expression would work well, but the change in total characters is throwing me for a loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John Martin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 14:00:40 GMT</pubDate>
    <dc:creator>JohnMartin6269</dc:creator>
    <dc:date>2019-04-30T14:00:40Z</dc:date>
    <item>
      <title>Extracting filename to field</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762256#M141097</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for a way to extract a portion of the full filename of my drawings to a field for my titleblock on drawings. I can use DIESEL to extract part of it but am trying to figure out how to extract a portion of the filename UP TO BUT NOT INCLUDING the first space in the name. Example file names are as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LUIB_A-101&lt;/STRONG&gt; FIRST FLOOR PLAN&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LUIB_S-101A&lt;/STRONG&gt; STRUCTURAL FLOOR PLAN AREA 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to extract is the bold portion of the file name, but this portion is not consistent in length. I am not sure how to accomplish this and would love some guidance on this issue. If they were the same length every time a simple DIESEL expression would work well, but the change in total characters is throwing me for a loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John Martin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762256#M141097</guid>
      <dc:creator>JohnMartin6269</dc:creator>
      <dc:date>2019-04-30T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting filename to field</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762594#M141098</link>
      <description>&lt;P&gt;I don't know if what you ask is possible, but if you were to only name your drawing by the portion you want to show up, it's easy as pie! We do it all the time here. You can have a field look at the filename and report it without showing the full path or file extension. We name our parent files strictly by the project's job number.&lt;/P&gt;
&lt;P&gt;Another thing I do is I name my layout tabs the same as the sheet numbers. That way, whatever is on that sheet that normally would have the sheet number, would now report it automatically in a field. The variable for that is CTAB.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762594#M141098</guid>
      <dc:creator>Bob_Zurunkle</dc:creator>
      <dc:date>2019-04-30T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting filename to field</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762772#M141099</link>
      <description>&lt;P&gt;I would approach this differently if it were me doing it. My first idea is to shorten the file names to just the number, the part you want to display. The rest of the file name might not really be needed any way. However, that might be out of your control. Your file naming procedures might be a company standard thing that you can not change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we do where I work is to use Sheet Sets. The file name is whatever, but then there are fields for Drawing number, Drawing title, or any custom item you want to create and use. Fields can see this data from a Sheet Set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you aren't using Sheet Sets then you can try putting the info in the Drawing Properties (DWGPROPS). There are several fields already there or you can create a custom field with any information there. Fields can get this info too similar to a sheet set.&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="dwgprops.JPG" style="width: 362px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/631699iAE438EA5357F7B3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="dwgprops.JPG" alt="dwgprops.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 17:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extracting-filename-to-field/m-p/8762772#M141099</guid>
      <dc:creator>BrianBenton</dc:creator>
      <dc:date>2019-04-30T17:01:13Z</dc:date>
    </item>
  </channel>
</rss>

