working directory

working directory

Anonymous
Not applicable
555 Views
5 Replies
Message 1 of 6

working directory

Anonymous
Not applicable
how to I change the working directory value for autocad without a shortcut?
0 Likes
556 Views
5 Replies
Replies (5)
Message 2 of 6

Ed__Jobe
Mentor
Mentor
Use the vb CurDir function.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 6

Anonymous
Not applicable
that tells me what it is but does not seem to let me change it.

That is the value I want to change. The help file seems to indicate that I
can not change the value. I must be missing something


"Mike Daugird" wrote in message
news:f111a63.-1@WebX.maYIadrTaRb...
> how to I change the working directory value for autocad without a
shortcut?
>
>
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
I tried the following
Public Sub cha()
Dim sysVarName As String
Dim sysVarData As Variant
sysVarName = "CURDIR"
sysVarData = "c:/temp"
ThisDrawing.SetVariable sysVarName, sysVarData

MsgBox CurDir
End Sub
it kind of came from the help file, I tried forward and back slashes in the
c:/temp line and it does not matter.

I need a way to change this freakin variable
also curdir("C:\Temp\") gives an error and forward or backslashes does not
matter here either.

thanks

"Mike Daugird" wrote in message
news:f111a63.-1@WebX.maYIadrTaRb...
> how to I change the working directory value for autocad without a
shortcut?
>
>
>
>
0 Likes
Message 5 of 6

Ed__Jobe
Mentor
Mentor
Sorry, it's been awhile since I used it. Use ChDrive and ChDir to set them. However, if you are planning to use this with acad's file nav dialogs and REMEMBERFOLDERS is set to 1, then this won't work. Acad stores each dialog's previously used folder in the registry. Look under HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R15.0\ACAD-2:409\Profiles\ProfileName\Dialogs\OpenSaveAnavDialogs\InitialDirectory for an example.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 6 of 6

Ed__Jobe
Mentor
Mentor
CurDir is not an acad sysvar, but a vb function.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes