鲍勃
如果你或任何人感兴趣,这是我的wscurrent启动代码
,它会检查活动配置文件,菜单文件(主cui),最后它会设置你的wscurrent
Mark
- Sub Acadstartup()
- Dim Username As Variant
- Dim WshNetwork As Variant
- Dim Preferences As AcadPreferences
- Dim ActProfile As String
- Dim CurrMenuPath As String
- Dim CurrMenuFile As String
- Set WshNetwork = CreateObject("WScript.Network")
- Set Preferences = ThisDrawing.Application.Preferences
- Username = WshNetwork.Username
- ActProfile = Preferences.Profiles.ActiveProfile
- CurrMenuPath = "C:\Documents and Settings" & Username & "\Application Data\Autodesk\Autodesk Land Desktop 2006\R16.2\enu\Support"
- CurrMenuFile = Preferences.Files.MenuFile
- If ActProfile = "Land Desktop" Then
- CurrMenuFile = CurrMenuPath & "land"
- ThisDrawing.SetVariable "wscurrent", "Land Destop Complete"
- Else
- If ActProfile = "MapLandDevelopmentDesktop" Then
- CurrMenuFile = CurrMenuPath & "acmap"
- ThisDrawing.SetVariable "wscurrent", "Map Classic"
- End If
- End If
-
- End Sub
|