PDA

View Full Version : VBA - access the Symbol Manager Path in Land Desktop 2007



sgroff
2007-03-19, 03:51 PM
The code below is from the VBA refrence help file in LDT.
I cannot get this to work though. I think that the type " AeccPreferencesFiles" is not recognized. I have found other "misspellings" or "misinformation" in the help file, but I can ussually figure out what it should be if VBA doesnt recognize it.

This one is frustrating me.

Anyone know anything about this ?

All i really need to know is how to access the Symbol Manager Path in land desktop 2007

Manully i would go to projects--> user preferences...
now with the dialog up--> pick the drop down--> select Symbol manager files--> then point to the network file


Heres the code from the help file.


Sub Example_SymbolManagerPath()

' This example returns the SymbolManagerPath setting.
Dim prefFiles As AeccPreferencesFiles
Set prefFiles = AeccApplication.Preferences.Files

MsgBox "The current value for SymbolManagerPath is: " & prefFiles.SymbolManagerPath, _
vbInformation, "SymbolManagerPath Example"

End Sub

sgroff
2007-03-19, 04:20 PM
* edit*

I fixed it.. should have loaded version 6 instead of 4