Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Cadologist
en respuesta a: Anonymous

You could create a custom acaddoc.lsp and add the DXEVAL = 0 so that anytime an affected drawing is opened (or a new drawing is created) this variable will be automatically changed, in this case, to 0. "

 

The ACADDOC.LSP File

"The acaddoc.lsp file is intended to be associated with each document (or drawing) initialization. This file is useful if you want to load a library of AutoLISP routines to be available every time you start a new drawing (or open an existing drawing).

 

Each time a drawing opens, AutoCAD searches the library path for an acaddoc.lsp file. If it finds one, it loads the file into memory. The acaddoc.lsp file is always loaded with each drawing regardless of the settings of ACADLSPASDOC.

 

Most users will have a single acaddoc.lsp file for all document-based AutoLISP routines. The program searches for an acaddoc.lsp file in the order defined by the library path; therefore, with this feature, you can have a different acaddoc.lsp file in each drawing directory, which would load specific AutoLISP routines for certain types of drawings or jobs."

 

 

Custom acaddoc.lsp files can be created, ensure the path to that folder (that contains this custom file) is that the TOP of the support folder tree (under Options --> Files Tab --> Support File Search Path).


As a best practice, create a copy for backup purposes before manipulating the original file. Additionally, ensure that once you have completed this requirement, set the file back to the original to avoid applying this variable update to all files opened/new moving forward.....

 

There are likely other options here, action recorder could be utilized or other LISP options to ensure the variable is disabled prior to your printing requirements. This is just one example and potential solution to assist......

 

Example Code:

 

;; Set DXEVAL to 0
(command "dxeval" 0)

 

For more information on the acaddoc.lsp and respective files, click the link below:

 

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/AutoCAD-Customization...


Chad Franklin
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.

EESignature