<?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: iLogic save location in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5618947#M377759</link>
    <description>&lt;P&gt;The code works, but there is to much clutter in my opinion. Also it doesn't function within the Ilogic ('set' functions are not supported etc)&lt;/P&gt;&lt;P&gt;I was looking for something really simple, and I just found that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Left(ThisDoc.WorkspacePath(),Len(ThisDoc.WorkspacePath()) - 7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me exactly the path I needed. The location that I wanted, was the path above the project workspace folder. Because my workspace folder is called 'designs', I can just&amp;nbsp;count off the number of characters, in my case 7, from the workspace path string. Then with a 'left' function, it gets the location without the 'designs' part in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 May 2015 19:57:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-03T19:57:49Z</dc:date>
    <item>
      <title>iLogic save location</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611523#M377756</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm searching for some code to save my file in a library. I have some libraries defined in my project ( in the project editor under 'libraries'), and instead of giving me the directory for the workspace, with&amp;nbsp;the thisdoc.workspacepath code, it should give me the directory where the libraries are located. for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;workspacepath = thisdoc.workspacepath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Librarypath = thisprojectlibrarypath ????? (something like this) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 19:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611523#M377756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-28T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save location</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611650#M377757</link>
      <description>&lt;P&gt;Again, I found the answer in about 2 minutes using API help. I suggest you check there first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="api HELP.JPG" border="0" alt="api HELP.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/166090iDF70DEE5B6FE6F8B/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611650#M377757</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-28T20:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save location</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611655#M377758</link>
      <description>&lt;P&gt;For anyone else curious,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query and create library paths API Sample&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;Sub QueryAndCreateLibraryPaths()
    Dim oProjectMgr As DesignProjectManager
    Set oProjectMgr = ThisApplication.DesignProjectManager

    &lt;SPAN&gt;' Get the active project&lt;/SPAN&gt;
    Dim oProject As DesignProject
    Set oProject = oProjectMgr.ActiveDesignProject

    Dim oLibraryPaths As ProjectPaths
    Set oLibraryPaths = oProject.LibraryPaths

    &lt;SPAN&gt;' Add a new library path to the end of the list&lt;/SPAN&gt;
    Call oLibraryPaths.Add("MyLibraryPath", "C:\temp\MyLibrary")

    &lt;SPAN&gt;' Print all library names and paths&lt;/SPAN&gt;
    Dim oLibraryPath As ProjectPath
    For Each oLibraryPath In oLibraryPaths
        Debug.Print "Name: " &amp;amp; oLibraryPath.Name &amp;amp; " Path: " &amp;amp; oLibraryPath.Path
    Next
End Sub&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5611655#M377758</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-28T20:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic save location</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5618947#M377759</link>
      <description>&lt;P&gt;The code works, but there is to much clutter in my opinion. Also it doesn't function within the Ilogic ('set' functions are not supported etc)&lt;/P&gt;&lt;P&gt;I was looking for something really simple, and I just found that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Left(ThisDoc.WorkspacePath(),Len(ThisDoc.WorkspacePath()) - 7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me exactly the path I needed. The location that I wanted, was the path above the project workspace folder. Because my workspace folder is called 'designs', I can just&amp;nbsp;count off the number of characters, in my case 7, from the workspace path string. Then with a 'left' function, it gets the location without the 'designs' part in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2015 19:57:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-save-location/m-p/5618947#M377759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-03T19:57:49Z</dc:date>
    </item>
  </channel>
</rss>

