<?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: Show FILENAME without file format in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13629169#M289</link>
    <description>&lt;P&gt;thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2025 05:00:57 GMT</pubDate>
    <dc:creator>JJ_PL</dc:creator>
    <dc:date>2025-05-14T05:00:57Z</dc:date>
    <item>
      <title>Show FILENAME without file format</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13628046#M287</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to ask for help to display FILENAME in general note but without file format.&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="JJ_PL_1-1747139097470.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1532920i9C696CAABF38AF3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JJ_PL_1-1747139097470.png" alt="JJ_PL_1-1747139097470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do display it by showing standard iProperties : FILENAME general note...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to write short code to generate new property, but i don't know how to select FILENAME parameter&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="JJ_PL_2-1747139361380.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1532924i19E3051334265E19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JJ_PL_2-1747139361380.png" alt="JJ_PL_2-1747139361380.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the way I try to do it is good, but can go over this problem and I can't find soulution in google&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be greatful for tips&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:34:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13628046#M287</guid>
      <dc:creator>JJ_PL</dc:creator>
      <dc:date>2025-05-13T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Show FILENAME without file format</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13628201#M288</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;You can create a custom parameter to get the file name without extension, then add that parameter to the annotation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;' Get the full document file name (with extension)&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fullFileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;fullFileName&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;) &lt;SPAN&gt;' True includes extension&lt;/SPAN&gt;

&lt;SPAN&gt;' Remove the extension to get just the file name&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fileNameWithoutExtension&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
&lt;SPAN&gt;fileNameWithoutExtension&lt;/SPAN&gt; = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetFileNameWithoutExtension&lt;/SPAN&gt;(&lt;SPAN&gt;fullFileName&lt;/SPAN&gt;)

&lt;SPAN&gt;' Set the Part Number to match the file name (no extension)&lt;/SPAN&gt;
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"FNnExt"&lt;/SPAN&gt;) = &lt;SPAN&gt;fileNameWithoutExtension&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;or just:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"FNnEXT"&lt;/SPAN&gt;) = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;(&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 May 2025 14:10:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13628201#M288</guid>
      <dc:creator>CCarreiras</dc:creator>
      <dc:date>2025-05-13T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show FILENAME without file format</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13629169#M289</link>
      <description>&lt;P&gt;thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 05:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/show-filename-without-file-format/m-p/13629169#M289</guid>
      <dc:creator>JJ_PL</dc:creator>
      <dc:date>2025-05-14T05:00:57Z</dc:date>
    </item>
  </channel>
</rss>

