<?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: How to truncate beginning portion of file path name with fields or rtext in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748984#M67701</link>
    <description>&lt;P&gt;Understood. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 19:55:53 GMT</pubDate>
    <dc:creator>trel.molliermangarin</dc:creator>
    <dc:date>2021-11-10T19:55:53Z</dc:date>
    <item>
      <title>How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10746672#M67692</link>
      <description>&lt;P&gt;Our file path name is too long on the title block and extends beyond the printable limits of the sheet. Is there a way to remove the username at the beginning of the file path in fields or rtext as shown in the screenshot?&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="trelmolliermangarin_0-1636504447467.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/987830i738C611D869B5B71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trelmolliermangarin_0-1636504447467.png" alt="trelmolliermangarin_0-1636504447467.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:36:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10746672#M67692</guid>
      <dc:creator>trel.molliermangarin</dc:creator>
      <dc:date>2021-11-10T00:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10746720#M67693</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8913139"&gt;@trel.molliermangarin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider the suggestions from this link:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/td-p/9441494" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/retrieve-partial-filename/td-p/9441494&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 01:19:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10746720#M67693</guid>
      <dc:creator>Valentin_CAD</dc:creator>
      <dc:date>2021-11-10T01:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748714#M67694</link>
      <description>&lt;P&gt;Thank you Emilio. I have a better idea of how to manipulate the field/diesel expression with the link you provided. However, I still can't figure out how to set up an expression to start a Filename without the drive and username at the beginning. Any idea how to remove the username from the filename as shown in the screen shot?&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="trelmolliermangarin_0-1636566894832.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/988249iA69ACDD0ADC00F91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trelmolliermangarin_0-1636566894832.png" alt="trelmolliermangarin_0-1636566894832.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 17:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748714#M67694</guid>
      <dc:creator>trel.molliermangarin</dc:creator>
      <dc:date>2021-11-10T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748736#M67695</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8913139"&gt;@trel.molliermangarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not add DIRECTORY ... in front of the "Filename only" field?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValentinWSP_0-1636567603310.png" style="width: 540px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/988251i4FD1EE1A37E463BE/image-dimensions/540x506?v=v2" width="540" height="506" role="button" title="ValentinWSP_0-1636567603310.png" alt="ValentinWSP_0-1636567603310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Diesel Expression would resolve your issue.&lt;/P&gt;&lt;P&gt;Try asking the users on&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank" rel="noopener"&gt;Visual LISP, AutoLISP and General Customization.&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;See other examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-F94A885A-4DA2-432B-AC1A-EB49CC6C1C72-htm.html" target="_blank" rel="noopener"&gt;DIESEL Functions Reference&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;A href="https://www.cadforum.cz/en/modified-drawing-name-as-an-automatic-field-tip7003" target="_blank" rel="noopener"&gt;https://www.cadforum.cz/en/modified-drawing-name-as-an-automatic-field-tip7003&lt;/A&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748736#M67695</guid>
      <dc:creator>Valentin_CAD</dc:creator>
      <dc:date>2021-11-10T18:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748781#M67696</link>
      <description>&lt;P&gt;Not a bad idea. However, there are a few folders in the file path string prior to the file name.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:29:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748781#M67696</guid>
      <dc:creator>trel.molliermangarin</dc:creator>
      <dc:date>2021-11-10T18:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748834#M67697</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8913139"&gt;@trel.molliermangarin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another suggestion would be to add a MTEXT (blank) with a background mask.&lt;/P&gt;&lt;P&gt;Then use the DRAWORDER "bring to front" (to cover the C:USER....).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValentinWSP_0-1636570105681.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/988265iCB5115257A785F36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValentinWSP_0-1636570105681.png" alt="ValentinWSP_0-1636570105681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 18:52:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748834#M67697</guid>
      <dc:creator>Valentin_CAD</dc:creator>
      <dc:date>2021-11-10T18:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748916#M67698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8913139"&gt;@trel.molliermangarin&lt;/a&gt; try this diesel expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use it in a field - Category Other - Field Name DieselExpression&lt;/P&gt;
&lt;P&gt;This will work if the drawing is in C:\users\username\&lt;/P&gt;
&lt;P&gt;If you save the drawing somewhere else you may not get the desired results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$(upper, $(substr, $(getvar, dwgprefix), $(+, $(strlen,$(getvar,loginname)), 11)) $(getvar,dwgname))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:40:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748916#M67698</guid>
      <dc:creator>user181</dc:creator>
      <dc:date>2021-11-10T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748948#M67699</link>
      <description>&lt;P&gt;Thank you very much! This did the trick. What was your code logic on this? Did you count the string length of the login name and start the file path after (i.e. subtracted all characters prior to last character of login name)?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:43:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748948#M67699</guid>
      <dc:creator>trel.molliermangarin</dc:creator>
      <dc:date>2021-11-10T19:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748966#M67700</link>
      <description>&lt;P&gt;It adds the length of the login name plus 11 characters for c:\users and other slashes (I may have counted wrong) to omit from the path.&amp;nbsp; You can adjust the 11 to see more or less characters if needed at the beginning&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748966#M67700</guid>
      <dc:creator>user181</dc:creator>
      <dc:date>2021-11-10T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to truncate beginning portion of file path name with fields or rtext</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748984#M67701</link>
      <description>&lt;P&gt;Understood. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 19:55:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-truncate-beginning-portion-of-file-path-name-with-fields/m-p/10748984#M67701</guid>
      <dc:creator>trel.molliermangarin</dc:creator>
      <dc:date>2021-11-10T19:55:53Z</dc:date>
    </item>
  </channel>
</rss>

