<?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 How to use Diesel expression for part of file name for title block attribute in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-diesel-expression-for-part-of-file-name-for-title/m-p/12061165#M27983</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the title blocks for the company that I work for set up with diesel expressions to use the file name for attributes for the filename and drawing number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our filename template is XXXXXX-ZZZEPP.DWG.&lt;/P&gt;&lt;P&gt;XXXXXX is the drawing&lt;/P&gt;&lt;P&gt;-ZZZ is the sub-assembly&amp;nbsp;&lt;/P&gt;&lt;P&gt;ans PP Is the sheet number (E stands for electrical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The diesel expression I am using to get the drawing number is&amp;nbsp;$(substr,$(getvar,"dwgname"),1,$(-,$(strlen,$(getvar,"dwgname")),7))&lt;/P&gt;&lt;P&gt;I need a diesel expression for the sheet number attribute from the file name, which would be characters 12-13 of 17 total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 14:58:16 GMT</pubDate>
    <dc:creator>Tyler.eurich</dc:creator>
    <dc:date>2023-06-26T14:58:16Z</dc:date>
    <item>
      <title>How to use Diesel expression for part of file name for title block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-diesel-expression-for-part-of-file-name-for-title/m-p/12061165#M27983</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the title blocks for the company that I work for set up with diesel expressions to use the file name for attributes for the filename and drawing number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our filename template is XXXXXX-ZZZEPP.DWG.&lt;/P&gt;&lt;P&gt;XXXXXX is the drawing&lt;/P&gt;&lt;P&gt;-ZZZ is the sub-assembly&amp;nbsp;&lt;/P&gt;&lt;P&gt;ans PP Is the sheet number (E stands for electrical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The diesel expression I am using to get the drawing number is&amp;nbsp;$(substr,$(getvar,"dwgname"),1,$(-,$(strlen,$(getvar,"dwgname")),7))&lt;/P&gt;&lt;P&gt;I need a diesel expression for the sheet number attribute from the file name, which would be characters 12-13 of 17 total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 14:58:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-diesel-expression-for-part-of-file-name-for-title/m-p/12061165#M27983</guid>
      <dc:creator>Tyler.eurich</dc:creator>
      <dc:date>2023-06-26T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: How to use Diesel expression for part of file name for title block attribute</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-diesel-expression-for-part-of-file-name-for-title/m-p/12061184#M27984</link>
      <description>&lt;P&gt;1000 times edited&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STRLEN SUBSTR GETVAR&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-F94A885A-4DA2-432B-AC1A-EB49CC6C1C72" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-F94A885A-4DA2-432B-AC1A-EB49CC6C1C72&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fix filename length?&lt;/P&gt;
&lt;P&gt;&lt;FONT style="font-family: ArtifaktLegend-Regular , Arial , Helvetica , sans-serif; color: #666666;"&gt;&lt;FONT style="font-family: ArtifaktLegend-Regular , FrutigerNext-Regular , FrutigerNext-Regular , Arial , Helvetica , sans-serif;"&gt;$(substr,$(getvar,dwgname),12,2)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;variable length&lt;/P&gt;
&lt;P&gt;$(substr,$(getvar,dwgname),$(-,$(strlen,$(getvar,dwgname)),2),2)&lt;/P&gt;
&lt;DIV id="simple-translate" class="simple-translate-system-theme"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('moz-extension://bdcf6203-1d8d-4f0c-b98e-eba5f03789eb/icons/512.png'); height: 22px; width: 22px; top: 352px; left: -20px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Jun 2023 15:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-diesel-expression-for-part-of-file-name-for-title/m-p/12061184#M27984</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2023-06-26T15:23:46Z</dc:date>
    </item>
  </channel>
</rss>

