HI All, im trying to set a user pref (like i have done many times before) but this one doesnt seem to be working...
do you see anything wrong with my code?
|Dim swApp||As SldWorks.SldWorks|
|Dim swModel||As SldWorks.ModelDoc2|
|'Connect to Solidworks & active document|
|Set swApp = Application.SldWorks|
|Set swModel = swApp.ActiveDoc|
|'Verify there is an active document before continuing any further.|
|If swModel Is Nothing Then|
|'Check if ActiveDoc is a Drawing|
|If (swModel.GetType = swDocDRAWING) Then|
|swApp.SetUserPreferenceToggle swUserPreferenceToggle_e.swDetailingLinearDimPrecisionLinkWithModel, False|