The source code for the example functions proposed in the different chapters along with the DCL code files and the OpenDCL project can be downloaded from this page. An acaddoc.lsp file for the automatic loading of some of the programs is also included. All this is contained in the compressed file Visual LISP Projects.zip. This code should be unzipped to disk without modifying the folder structure.
Once this is done, the Visual LISP Projects folder should be added to AutoCAD's Support files search paths. This way for every new drawing the code contained in this folder's acaddoc.lsp file will be executed, automatically loading the utility functions that are used in the different example programs.
Once this is done, the Visual LISP Projects folder should be added to AutoCAD's Support files search paths. This way for every new drawing the code contained in this folder's acaddoc.lsp file will be executed, automatically loading the utility functions that are used in the different example programs.
This book's code has been tested for compatibility with AutoCAD 2019. Starting with Release 2014, custom applications like those developed in this book must work under secure mode. Secure mode is enabled when the new system variable SECURELOAD is set to 1 or 2. When operating under secure mode loading of applications is restricted to files contained in trusted locations. These trusted locations are specified by the TRUSTEDPATHS system variable. So besides including the Visual LISP Projects folder in the Support Files Search Paths list, it must be also included in the Trusted Locations list of the Files tab in the Options dialog box. This must also be done for other folders like the Chapters, Numera, Utility, Parametric, TextScale and XLayer/FAS folders and for any others that will contain executable code. For additional security these folders should have the Read-Only status.
To execute the programs for a certain chapter the source code for that chapter must be loaded previously. The source code for the different chapters is included in the Chapters folder. The LSP code files for the different Chapters is available in the following links.
No comments:
Post a Comment