Applying to: ZWCAD 2018; ZWCAD 2019


If you want to protect your lisp file and prevent others to view the source code, there is a way to let you compile a zelx file from a lisp file.


We use the lisp function the help you do that, please refer to the following code:

(compile-zelx SourceLspFile DestZelxFile)


compile-zelx is the lisp function name, SourceLspFile is the path of the lisp file and DestZelxFile is the path to export the zelx file.


For example, user wants to compile a lisp file in D drive, and export a zelx file in the same folder.

(compile-zelx "d:\\test.lsp" "d:\\test.zelx")


Ps: In some PC, C drive needs a higher priority to manage it, please avoid to compile a file from C drive and to C drive.