I'm trying to write a macro to solve a SW 2010 "bug" and not quite getting it working yet. I need to setup all the users to point to a series of Referenced Documents folders in the SW options. Using the swSettings file does not carry them over. I even tried making a regestry file to add them and it does not work. From what I can tell it was a problem in SW 2010 and we cannot update for ~4 more months (due to other factors inside the company). It stinks to be this far behind but there are other factors in play here. So I figured I would create a macro to do this for me and I started by recording the steps. It records and gives me several boolean lines of code. Even if I rereun that macro it will only add the last one in the list, weather it be a list of 2 or 22. Anybody got any thoughts for me here?
Set swApp = Application.SldWorks
boolstatus = swApp.SetUserPreferenceStringValue(swUserPreferenceStringValue_e.swFileLocationsDocuments, "C:\SolidWorks Data\Pièces\SOLIDPARTS\Fasteners\US Washers")
boolstatus = swApp.SetUserPreferenceStringValue(swUserPreferenceStringValue_e.swFileLocationsDocuments, "C:\SolidWorks Data\Pièces\SOLIDPARTS\Fasteners\US Stud Weld")
End Sub
Thanks in advance for your thoughts
Tom
SolidworksApi macros