plot to the same directory where the dwg is
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
plot to the same directory where the dwg is

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Printing
Author Message
Guest






Posted: Mon May 02, 2005 2:57 pm    Post subject: plot to the same directory where the dwg is Reply with quote

Hi, with autocad 2002 I used an autolisp that works no longer with
autocad 2006: it sets up the plt output directory to be the same as
the dwg currently opened.
Can you help me?

Do you know of any working solution?

Thanks


http://new.cadalyst.com/newsline/issue.cfm?issue=200034

14. TIP: ROUTINES RESET AUTOCAD PATHS TO THE CURRENT DIRECTORY
Leland Leahy sent in this routine for resetting all paths in AutoCAD
to
the current directory:

(defun e:acadregdialog_set (k$ e$ v$); key entry value
(vl-registry-write (strcat

"HKEY_CURRENT_USER\\Software\\Autodesk\\Autocad\\R15.0\\ACAD-1:409\\Profiles\\"

(getvar "CPROFILE") "\\Dialogs\\" k$) e$
v$)
); end defun

The following loads every time a drawing opens:

;add standard settings below
(e:acadregdialog_set "OpenSaveAnavDialogs" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "Select File" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "Create Slide File" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "Enter Name Of File To Overlay"
"InitialDirectory"
(getvar "DWGPREFIX"))
(e:acadregdialog_set "ExportLayerStatesFileDialog" "InitialDirectory"
(getvar "DWGPREFIX"))
(e:acadregdialog_set "PublishToWeb" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "PublishToWebDirectory" "InitialDirectory"
(getvar
"DWGPREFIX"))
(e:acadregdialog_set "Save Drawing As" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "Select A File" "InitialDirectory" (getvar
"DWGPREFIX"))
(e:acadregdialog_set "SelectDrawingFileBlkDlg" "InitialDirectory"
(getvar
"DWGPREFIX"))

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Printing All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB