- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can I get inventor to import an Exported Toolbars setting ?
I am working on an program that will make it very easy to update many computer with my custom setting
Toolsbar, Action rules , VBA code and standard seache .
But I still need an good way to update my toolbar. multi PC in the company. it there a way to by Ilogic or VBA to make it import an toolbar setting file ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I could not find a way using the api. But you could try to copy the InventorCustomization file.
Dim inventorVersion As String = "2020" Dim destinationPath As String = "c:\temp\" Dim fileName As String = "InventorCustomization.xml" Dim appdataPath As String = System.Environment.ExpandEnvironmentVariables("%APPDATA%") Dim lastPartPath As String = String.Format("Autodesk\Inventor {0}", inventorVersion) Dim fullSourcePath As String = System.IO.Path.Combine(appdataPath, lastPartPath, fileName) Dim fullDestinationPath As String = System.IO.Path.Combine(destinationPath, fileName) If (System.IO.File.Exists(fullSourcePath)) Then ' copy the customization file to a save location System.IO.File.Copy(fullSourcePath, fullDestinationPath, True) Else MsgBox("could Not find customization file") End If ' do something else ' and return the customization file to its original location System.IO.File.Copy(fullDestinationPath, fullSourcePath, True)
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know this ... but the problem is that inventor save the current setting over the file when you close it . so you will still have the same settings as before when you open inventor again.
I might be able to do want you are saying outside of inventor. but I would like to do it all by one click in inventor if it is possible... So I can ask one user to try first ... to test that may update does not **** anything up ... and the aske the reste in a day or two to update ther inventor as well if no problem was fund