Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
551 Views, 2 Replies

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

 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?

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Please anyone? This should be working

Message 3 of 3
Anonymous
in reply to: Anonymous

Solved myself

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report