注册 登录
明经CAD社区 返回首页

snddd2000的个人空间 http://www.mjtd.com/?393651 [收藏] [复制] [分享] [RSS]

日志

分享 [工具]AutoCAD.Lisp等距3D螺旋线(任意曲线的回转表面)
2015-5-16 12:01
[工具]AutoCAD.Lisp等距3D螺旋线(任意曲线的回转表面)
无法上传文件,如果想使用请至【 工具 】处下载
2317 次阅读|0 个评论
分享 [函数]AutoCAD.Lisp字符串按单个字符分隔成字符串列表 (str->strlst str split)
2014-1-27 09:41
(defun str-strlst (strsplit /strchrlst carstrchrlst cdrstrchrlst n0n pd1strchr0 strlstcarstr ...
1944 次阅读|1 个评论 热度 1
分享 [函数]AutoCAD.Lisp多行文字过滤掉格式字符 (filterMtext str)
2013-9-17 23:36
(vl-load-com) (defun sn:leftnthlst (n lst) ;;;返回一个表中的前n个元素的表 ;;;示例:(sn:leftnthlst 2 '(1 2 3 4 5 6));返回表(1 2) ;;;如果输入的n值大于表长返回原表;小于1返回nil (vl-remove nil (mapcar '(lambda (x) (if (= (setq n (1- n)) 0) x nil ) ) lst ...
1522 次阅读|0 个评论 热度 2
分享 [函数]AutoCAD.Lisp十进制和其他进制的正整数的转换
2013-9-11 23:54
(defun Decimal-To (int bit / tmp re bestr) ;;; (Decimal-To 33 2) return "100001" ;;; int必须为正整数 ;;; bit必须大于1,且小于37(最多用到字母Z)。 (defun bestr (int) (if ( int 9) (vl-list-string (list (+ int 55))) (itoa int) ) ) ;_end sub defun (if (and ( bit 1) ...
1427 次阅读|0 个评论
分享 [函数]AutoCAD.Lisp文字样式的新建和修改
2013-1-29 15:18
献给不喜欢用command的坛友们。 有则改之,无则新建 (defun sn:settextstyle ;;; 示例:(sn:settextstyle "123" (list (cons 40 3) (cons 41 1)(cons 50 0)(cons 71 0)) (list "txt.shx" "hztxt.shx")) ;;; 或(sn:settextstyle "123" (list (cons 40 3) (cons 41 1)(cons 50 0) ...
1971 次阅读|0 个评论 热度 2
分享 [函数]AutoCAD Lisp获取表中的前n个元素和其后的元素,并切分表。
2012-12-27 17:13
(defun sn:leftnthlst (n lst) ;;;返回一个表中的前n个元素的表 ;;;示例:(sn:leftnthlst 2 '(1 2 3 4 5 6));返回表(1 2) ;;;如果输入的n值大于表长返回原表;小于1返回nil (vl-remove nil (mapcar '(lambda (x) (if (= (setq n (1- n)) 0) x nil ) ) lst ) ) ) (defun sn:rightnthlst (n lst) ;;;返回一个表中的第n个 ...
1751 次阅读|2 个评论 热度 1

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-4-30 00:34 , Processed in 2.358120 second(s), 11 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部