<?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: Path of the file without the first folder in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389662#M141980</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you , now it don't write to iProperties , I got the text on the drawing sheet , can you add a code that delete the text when rerun the code ? otherwise after run the code at 2nd time we got two texts - the 1st is useless&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 07:24:22 GMT</pubDate>
    <dc:creator>eladm</dc:creator>
    <dc:date>2022-08-30T07:24:22Z</dc:date>
    <item>
      <title>Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387690#M141935</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I get help to get a ilogic rule of the file path without the first folder&lt;/P&gt;&lt;P&gt;C:\Work\AAAAA\BBBB&lt;/P&gt;&lt;P&gt;I want to get AAAA\BBBB&lt;/P&gt;&lt;P&gt;to write it in a drawing , to new template and also to old drawings&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387690#M141935</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-29T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387734#M141938</link>
      <description>&lt;P&gt;You mean like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;str&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"C:\Work\AAAAA\BBBB"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;index&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Integer&lt;/SPAN&gt; = &lt;SPAN&gt;str&lt;/SPAN&gt;.&lt;SPAN&gt;IndexOf&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;str&lt;/SPAN&gt;.&lt;SPAN&gt;IndexOf&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;) + 1)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;result&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;Right&lt;/SPAN&gt;(&lt;SPAN&gt;str&lt;/SPAN&gt;, &lt;SPAN&gt;Len&lt;/SPAN&gt;(&lt;SPAN&gt;str&lt;/SPAN&gt;)- &lt;SPAN&gt;index&lt;/SPAN&gt;)
&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;result&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387734#M141938</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-29T13:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387780#M141939</link>
      <description>&lt;P&gt;If the "C:\Work\" represents workspace path of the active project, you can use this&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim fullFileName As String = ThisDoc.Document.FullFileName
Dim workspacePath As String = ThisApplication.DesignProjectManager.ActiveDesignProject.WorkspacePath
Dim relativeFileName = fullFileName.Replace(workspacePath, "")
Logger.Debug(relativeFileName)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11387780#M141939</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-08-29T13:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388085#M141953</link>
      <description>&lt;P&gt;the real folder is not aaaa , it was example&lt;/P&gt;&lt;P&gt;I need to get file path without c:\work\ = 8 characters and the use this in a drawing text&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:21:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388085#M141953</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-29T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388091#M141954</link>
      <description>&lt;P&gt;the c:\work\designs\ is the vault workspace&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have the path file of the model (ipt/iam) in the drawing without that&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:23:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388091#M141954</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-29T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388411#M141957</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1631595"&gt;@eladm&lt;/a&gt;.&amp;nbsp; There are several ways to get the file system path String (text) without a specific sub-string at the start of it.&amp;nbsp; What matters is which approach works best for your specific situation.&amp;nbsp; Do you need to have a "\" symbol left at the start of the remaining text, or not?&amp;nbsp; You may also want to check if the original String (file path) you have 'StartsWith' the specific text you are looking for, before simply removing 8 characters from the start of it.&amp;nbsp; That way if the path does not start with that specific text, it will not be removed.&lt;/P&gt;
&lt;P&gt;Here is a simple example of using the 'StartsWith' method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oWorkPath As String = "C:\Work\"
Dim oPath As String = "C:\Work\AAAAA\BBBB"
If oPath.StartsWith(oWorkPath) Then
	oPath = oPath.Replace(oWorkPath, "")
End If
MsgBox("oPath = " &amp;amp; oPath,,"")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize that you still need to put this into a text note on your drawing, but lets get the path string part figured out in a way that suits your needs first.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:44:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388411#M141957</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-08-29T17:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388699#M141968</link>
      <description>&lt;P&gt;folder AAAA and BBBB is not the real folder !!!&lt;/P&gt;&lt;P&gt;just an example&lt;/P&gt;&lt;P&gt;every file have a different path&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 19:46:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388699#M141968</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-29T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388730#M141969</link>
      <description>&lt;P&gt;what about this:&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim input As String = "C:\Work\AAAAA\BBBB"

Dim folders = input.Split("\").Skip(2)
Dim newPath = String.Join("\", folders)

MsgBox(newPath)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:03:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388730#M141969</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-08-29T20:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388731#M141970</link>
      <description>&lt;P&gt;I know what you'll mean. I get to it tomorrow moarning!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11388731#M141970</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-29T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389456#M141974</link>
      <description>&lt;P&gt;This is the rule, I think will work for you. You can change the green number depending on which \ you want to start.&lt;/P&gt;&lt;P&gt;Also you have to put a Ipropertie or a parameter on the drawing where you can put your route in. I did that with a Ipropertie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
	&lt;SPAN&gt;oViews&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oViews&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
		&lt;SPAN&gt;'MsgBox(oModelDoc.FullFileName)&lt;/SPAN&gt;
		&lt;SPAN&gt;dim&lt;/SPAN&gt; &lt;SPAN&gt;Input&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;string&lt;/SPAN&gt; = &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;folders&lt;/SPAN&gt; = &lt;SPAN&gt;Input&lt;/SPAN&gt;.&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;).&lt;SPAN&gt;Skip&lt;/SPAN&gt;(&lt;FONT color="#00FF00"&gt;5&lt;/FONT&gt;)
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;newPath&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Join&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;folders&lt;/SPAN&gt;)
		&lt;SPAN&gt;'MsgBox(newPath)&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;"05-Opmerking"&lt;/SPAN&gt;) = &lt;SPAN&gt;newPath&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 05:26:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389456#M141974</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T05:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389504#M141975</link>
      <description>&lt;P&gt;Hן&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's look OK , can you improve the rule , if in a drawing I have couple of sheets - in each one of them different model&lt;/P&gt;&lt;P&gt;So I need for each sheet different iproperties&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389504#M141975</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-30T06:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389526#M141977</link>
      <description>&lt;P&gt;My knowledge about the drawing api is not that good, but I will look in to it. If&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;can look at this problem that would be a win. He knows everything &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7B4B80143EBEB4F250CEEC82342F6CA1/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:11:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389526#M141977</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T06:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389572#M141978</link>
      <description>&lt;P&gt;I think I got it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know how but it works fine. Just change some of the code in red for the position. You know don't have to have a property or parameter.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oApp&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
	&lt;SPAN&gt;oViews&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oViews&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
		&lt;SPAN&gt;'MsgBox(oModelDoc.FullFileName)&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Input&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;folders&lt;/SPAN&gt; = &lt;SPAN&gt;Input&lt;/SPAN&gt;.&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;).&lt;SPAN&gt;Skip&lt;/SPAN&gt;(5)
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;newPath&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Join&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;folders&lt;/SPAN&gt;)
		&lt;SPAN&gt;'MsgBox(newPath)&lt;/SPAN&gt;
		
    	&lt;SPAN&gt;' Set a reference to the TransientGeometry on active sheet.&lt;/SPAN&gt;
    	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
    	&lt;SPAN&gt;oTG&lt;/SPAN&gt; = &lt;SPAN&gt;oApp&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
        &lt;SPAN&gt;'Set reference to the new required position taken and create new 2d point&lt;/SPAN&gt;
        &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; = &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - (&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2) - 1)&lt;/FONT&gt;
		
&lt;SPAN&gt;'		oSheet.DrawingNotes.GeneralNotes.AddFitted(ThisApplication.TransientGeometry.CreatePoint2d(DrawingView.position.x - DrawingView.width / 2, DrawingView.position.y - DrawingView.height / 2 - 1), newPath)&lt;/SPAN&gt;
		&lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingNotes&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralNotes&lt;/SPAN&gt;.&lt;SPAN&gt;AddFitted&lt;/SPAN&gt;(&lt;SPAN&gt;oNewPosition&lt;/SPAN&gt;,&lt;SPAN&gt;newPath&lt;/SPAN&gt;)
		&lt;SPAN&gt;'iProperties.Value("Custom", "05-Opmerking") = newPath&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:34:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389572#M141978</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T06:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389662#M141980</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you , now it don't write to iProperties , I got the text on the drawing sheet , can you add a code that delete the text when rerun the code ? otherwise after run the code at 2nd time we got two texts - the 1st is useless&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389662#M141980</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-30T07:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389683#M141981</link>
      <description>&lt;P&gt;I was working on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oApp&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;For Each oSheet In oDrawDoc.Sheets For Each oGeneralNote In oSheet.DrawingNotes.GeneralNotes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;oGeneralNote.Delete&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
	&lt;SPAN&gt;oViews&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oViews&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
		&lt;SPAN&gt;'MsgBox(oModelDoc.FullFileName)&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Input&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;folders&lt;/SPAN&gt; = &lt;SPAN&gt;Input&lt;/SPAN&gt;.&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;).&lt;SPAN&gt;Skip&lt;/SPAN&gt;(5)
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;newPath&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Join&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;folders&lt;/SPAN&gt;)
		&lt;SPAN&gt;'MsgBox(newPath)&lt;/SPAN&gt;
		
    	&lt;SPAN&gt;' Set a reference to the TransientGeometry on active sheet.&lt;/SPAN&gt;
    	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
    	&lt;SPAN&gt;oTG&lt;/SPAN&gt; = &lt;SPAN&gt;oApp&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
        &lt;SPAN&gt;'Set reference to the new required position taken and create new 2d point&lt;/SPAN&gt;
        &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; = &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;(&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;, &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Center&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt; - (&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Height&lt;/SPAN&gt; / 2) - 1)&lt;/FONT&gt;
		
&lt;SPAN&gt;'		oSheet.DrawingNotes.GeneralNotes.AddFitted(ThisApplication.TransientGeometry.CreatePoint2d(DrawingView.position.x - DrawingView.width / 2, DrawingView.position.y - DrawingView.height / 2 - 1), newPath)&lt;/SPAN&gt;
		&lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingNotes&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralNotes&lt;/SPAN&gt;.&lt;SPAN&gt;AddFitted&lt;/SPAN&gt;(&lt;SPAN&gt;oNewPosition&lt;/SPAN&gt;,&lt;SPAN&gt;newPath&lt;/SPAN&gt;)
		&lt;SPAN&gt;'iProperties.Value("Custom", "05-Opmerking") = newPath&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389683#M141981</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T07:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389695#M141982</link>
      <description>&lt;P&gt;some error&lt;/P&gt;&lt;P&gt;Error on Line 7 : 'oDrawDoc' is not declared. It may be inaccessible due to its protection level.&lt;BR /&gt;Error on Line 7 : End of statement expected.&lt;BR /&gt;Error on Line 10 : 'Next' must be preceded by a matching 'For'.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:40:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389695#M141982</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-30T07:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389727#M141983</link>
      <description>&lt;P&gt;Add this instead of the other one&lt;/P&gt;&lt;PRE&gt;For Each oSheet In &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.Sheets &lt;BR /&gt;For Each oGeneralNote In oSheet.DrawingNotes.GeneralNotes &lt;BR /&gt;oGeneralNote.Delete &lt;BR /&gt;Next &lt;BR /&gt;Next&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389727#M141983</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389768#M141984</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It look great&lt;/P&gt;&lt;P&gt;can you add this text inside the border or title block?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eladm_0-1661847169683.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109609iF53FC5640A96684D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eladm_0-1661847169683.png" alt="eladm_0-1661847169683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because the text can be moved (floating)&lt;/P&gt;&lt;P&gt;When print the drawing i need the path so it need in the bottom corner of the drawing&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389768#M141984</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-30T08:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389806#M141987</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oApp&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt; 
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oGeneralNote&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingNotes&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralNotes&lt;/SPAN&gt; 
&lt;SPAN&gt;oGeneralNote&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt; 
&lt;SPAN&gt;Next&lt;/SPAN&gt; 
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;
	&lt;SPAN&gt;oViews&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oViews&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocument&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oModelDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;
		&lt;SPAN&gt;'MsgBox(oModelDoc.FullFileName)&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Input&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;oFullFilePath&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;folders&lt;/SPAN&gt; = &lt;SPAN&gt;Input&lt;/SPAN&gt;.&lt;SPAN&gt;Split&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;).&lt;SPAN&gt;Skip&lt;/SPAN&gt;(5)
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;newPath&lt;/SPAN&gt; = &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;Join&lt;/SPAN&gt;(&lt;SPAN&gt;"\"&lt;/SPAN&gt;, &lt;SPAN&gt;folders&lt;/SPAN&gt;)
		&lt;SPAN&gt;'MsgBox(newPath)&lt;/SPAN&gt;
		
    	&lt;SPAN&gt;' Set a reference to the TransientGeometry on active sheet.&lt;/SPAN&gt;
    	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
    	&lt;SPAN&gt;oTG&lt;/SPAN&gt; = &lt;SPAN&gt;oApp&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;
		
		&lt;SPAN&gt;oBorder&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Border&lt;/SPAN&gt;
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
		&lt;SPAN&gt;oPlaceX&lt;/SPAN&gt; = &lt;SPAN&gt;oBorder&lt;/SPAN&gt;.&lt;SPAN&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN&gt;&lt;FONT color="#339966"&gt;Min&lt;/FONT&gt;Point&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt; &lt;FONT color="#FF0000"&gt;+ 0.1&lt;/FONT&gt;
		&lt;SPAN&gt;oPlaceY&lt;/SPAN&gt; = &lt;SPAN&gt;oBorder&lt;/SPAN&gt;.&lt;SPAN&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN&gt;MinPoint&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt; + 0.25&lt;/FONT&gt;
        &lt;SPAN&gt;'Set reference to the new required position taken and create new 2d point&lt;/SPAN&gt;
        &lt;SPAN&gt;oNewPosition&lt;/SPAN&gt; = &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;oPlaceX&lt;/SPAN&gt;,&lt;SPAN&gt;oPlaceY&lt;/SPAN&gt;)
		
&lt;SPAN&gt;'		oSheet.DrawingNotes.GeneralNotes.AddFitted(ThisApplication.TransientGeometry.CreatePoint2d(DrawingView.position.x - DrawingView.width / 2, DrawingView.position.y - DrawingView.height / 2 - 1), newPath)&lt;/SPAN&gt;
		&lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingNotes&lt;/SPAN&gt;.&lt;SPAN&gt;GeneralNotes&lt;/SPAN&gt;.&lt;SPAN&gt;AddFitted&lt;/SPAN&gt;(&lt;SPAN&gt;oNewPosition&lt;/SPAN&gt;,&lt;SPAN&gt;newPath&lt;/SPAN&gt;)
		&lt;SPAN&gt;'iProperties.Value("Custom", "05-Opmerking") = newPath&lt;/SPAN&gt;
	&lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the red to a desired position. if you want it in the right bottom corner change the green text to Max.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389806#M141987</guid>
      <dc:creator>TechInventor20</dc:creator>
      <dc:date>2022-08-30T08:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Path of the file without the first folder</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389845#M141988</link>
      <description>&lt;P&gt;No good , the text is still floating&amp;nbsp;&lt;/P&gt;&lt;P&gt;the text need to be "inside" the border or title block - this "lock" the text ,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eladm_0-1661849146756.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1109628i0D3AB707F8BF2A88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eladm_0-1661849146756.png" alt="eladm_0-1661849146756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:45:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/path-of-the-file-without-the-first-folder/m-p/11389845#M141988</guid>
      <dc:creator>eladm</dc:creator>
      <dc:date>2022-08-30T08:45:21Z</dc:date>
    </item>
  </channel>
</rss>

