Hole Wizard/Toolbox

According to this SolidWorks doucumentation ​, when I use the API GetUserPreferenceStringValue(swUserPreferenceStringValue_e.swHoleWizardToolBoxFolder), I should get the toolbox folder.

Insted I'm getting a file (C:\\SOLIDWORKS Data (5)\\lang\\english\\swbrowser.sldedb).

How can I get the toolbox folder location ?

SolidworksApi macros
Answers 3
DG
DG 2015-09-01 Best Answer

Checked on 2014 and it works fine

<p>Option Explicit</p><p>Dim swApp        As SldWorks.SldWorks</p><p>  </p><p>Sub main()</p><p>    Set swApp = Application.SldWorks</p><p>    Debug.Print swApp.GetUserPreferenceStringValue(swUserPreferenceStringValue_e.swHoleWizardToolBoxFolder)</p><p>End Sub</p>
SF
SF 2015-09-02

Yes, you are right, its working in 2014, but unfortunately it's not working in 2015.

DG
DG 2015-09-02

Not sure if this is expected behavior or something broke down in the API as I'm seeing same results on 2015.

Also from 2015 on wards the .mdb has been changed to .sldedb