add user path to projet file does not work (userpath is striked through)

add user path to projet file does not work (userpath is striked through)

Anonymous
Not applicable
689 Views
2 Replies
Message 1 of 3

add user path to projet file does not work (userpath is striked through)

Anonymous
Not applicable
 Sub Project()
  
        ' Set a reference to the DesignProjectManager object.
        Dim oDesignProjectMgr As DesignProjectManager
        Set oDesignProjectMgr = ThisApplication.DesignProjectManager

        Dim oProject As DesignProject

        Dim oDesignProject As DesignProject
        Set oDesignProject = oDesignProjectMgr.ActiveDesignProject

        Dim oFrequenlyUsedPaths As ProjectPaths
        Set oFrequenlyUsedPaths = oDesignProject.FrequentlyUsedPaths

        Dim oProjectName As String
        oProjectName = "Project1"

        Dim oProjectLocation As String
        oProjectLocation = "C:\temp" 'assumes there's a folder called c:\temp

        Set oProject = oDesignProjectMgr.DesignProjects.Add(MultiUserModeEnum.kSingleUserMode, oProjectName, oProjectLocation)
        
        Dim oFus As ProjectPaths
        Call oProject.FrequentlyUsedPaths.Add("FreqUsedSubFolder", "C:\temp\test") 'assumes there's a folder called c:\temp\test
        
        oProject.Activate

  End Sub

 This is the code from the samples in inventor help, i would like to add a frequently used subfolder.

But the path is striked through. When i manually do this in the project by choosing a folder, inventor accepts the path?

Is this a bug or not possible?

0 Likes
Accepted solutions (1)
690 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Please anyone? This should be working

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

Solved myself

0 Likes