本帖最后由 永不言弃 于 2024-8-14 19:54 编辑
LISP圆形面板源码,闲着没事搞来玩的,谨慎下载
用法
- (defun c:tt ()
- (setq mb_list
- (list
- (list "画圆圈" "CIRCLE")
- (list "偏移" "offset")
- (list "镜像" "mirror")
- (list "图层管理" "layer")
- (list "复制" "COPY")
- (list "移动" "MOVE")
- (list "打断" "break")
- (list "合并" "join")
- (list "圆角" "fillet")
- (list "画多段线" "PLINE")
- (list "画直线" "LINE")
- (list "阵列" "array")
- (list "构造线" "xline")
- (list "修剪" "trim")
- (list "缩放" "scale")
- (list "画矩形" "rectang")
- (list "倒角" "chamfer")
- (list "分解" "explode")
- )
- )
- (setq fun_help (list "更多" "tt1"))
- (fun_load_hyjm
- 0;;;;样式0-8
- 18;;;文字颜色
- (list 255 0 0);;;渐变rgb颜色表1
- (list 255 255 255);;;渐变rgb颜色表2
- fun_help;;;;中间按钮命令
- mb_list;;;;总命令列表(目前最长18个)
- )
- )
- (defun c:tt1 ()
- (setq mb_list
- (list
- (list "偏移" "offset")
- (list "镜像" "mirror")
- (list "阵列" "array")
- (list "复制" "COPY")
- (list "移动" "MOVE")
- (list "缩放" "scale")
- (list "打断" "break")
- (list "合并" "join")
- (list "圆角" "fillet")
- (list "倒角" "chamfer")
- (list "分解" "explode")
- (list "修剪" "trim")
- )
- )
- (setq fun_help (list "返回" "TT"))
- (fun_load_hyjm
- 4
- 18
- (list 255 0 0)
- (list 255 255 255)
- fun_help
- mb_list
- )
- )
|