CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2025 开发者帮助

编译单个 AutoLISP 程序文件 (Visual LISP IDE)

2024-5-18 19:17| 发布者: admin| 查看: 15| 评论: 0|原作者: admin|来自: AutoCAD

编译单个 AutoLISP 程序文件 (Visual LISP IDE)

编译 AutoLISP 源文件可以保护程序。

注意:Visual LISP IDE 仅在 Windows 上可用。
  • 在AutoCAD命令提示符下,使用以下语法的函数:vlisp-compile
    (vlisp-compile 'modefilename” [out-filename])

    对于此函数

    • mode 是标识编译器模式的符号
    • filename 是命名源文件的字符串
    • out-filename 是命名编译输出文件的字符串

例子

下面将 yinyang.lsp 编译为 yinyang.fas

(vlisp-compile 'st "yinyang.lsp")

下面将 yinyang.lsp 编译为 GoodKarma.fas

(vlisp-compile 'st "yinyang.lsp")

如果文件yinyang.lsp不在支持文件搜索路径指定的文件夹中,则必须指定文件所在的路径。

(vlisp-compile 'st "c:/program files/Autodesk/<AutoCAD installation directory>/sample/visuallisp/yinyang.lsp")

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-6-27 15:49

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部