Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
Do you know why, using the AutoCAD LT 2025 Help | AutoSavePath Property (ActiveX) | Autodesk, i can not change it to, for instance my desktop :
To make it clear i am certain the path i give is correct, i tried it for other automations and it works, but when i want to change the autosavepath i am facing an issue: I can change it from
%temp% to %temp%/test/ for instance, but it will run an automation error if i target my desktop, which is in read/write as far as i know.
Working code :
Sub test()
Dim z As AcadPreferencesFiles
Set z = Application.Preferences.Files
Dim x As String
x = z.AutoSavePath & "test\"
z.AutoSavePath = x
End Sub
Not working code :
Sub testNotWorking()
Dim z As AcadPreferencesFiles
Set z = Application.Preferences.Files
Dim x As String
x = "C:\Users\XXXX\Desktop\test\"
z.AutoSavePath = x
End Sub
Solved! Go to Solution.