在VBA
中- Public Sub ACADStartup()
- Dim supppath As String
- 'This will prevent you entering the same entry more than once
- supppath = UCase(ThisDrawing.Application.Preferences.Files.SupportPath)
- If Not (InStr(1, supppath, "U:\TITLEBLOCKS") > 1) Then
- ThisDrawing.Application.Preferences.Files.SupportPath = supppath & ";U:\TITLEBLOCKS"
- End If
- supppath = UCase(ThisDrawing.Application.Preferences.Files.SupportPath)
- If Not (InStr(1, supppath, "U:\SYMBOLS") > 1) Then
- ThisDrawing.Application.Preferences.Files.SupportPath = supppath & ";U:\SYMBOLS"
- End If
- supppath = UCase(ThisDrawing.Application.Preferences.Files.SupportPath)
- If Not (InStr(1, supppath, "U:\PROJECTLOGS") > 1) Then
- ThisDrawing.Application.Preferences.Files.SupportPath = supppath & ";U:\PROJECTLOGS"
- End If
- Exit Sub
- End Sub
|