代码段存储在 AutoCAD AutoLISP 扩展模块的 snippets.json 文件中;您可以添加新的代码段或编辑现有的代码段,以提高编写 AutoLISP 程序时的效率。snippets.json 文件是用 JSON 编写的,支持 C 样式注释。每个代码片段应包含以下属性:
下面显示了代码段的基本定义: "ifprogn":
{
"prefix": "ifp",
"body":
[
"(if (${1:testexpr})",
"\t(progn",
"\t\t(${2:thenexpr})",
"\t)",
")"
],
"description": "if progn expression"
}
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-10-29 14:10
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.