9
23
14
初来乍到
(defun c:bara ()(setq n (getint "\nEnter number of bars"))(setq d (getint "\nEnter diameter of bars"))(regapp "barinfo")(setq oldlist (entget (car (entsel))))(setq barinfo '((-3 ("barinfo" (1005 . n) (1070 . d))))(setq newlist (append oldlist barinfo))(entmod newlist))
使用道具 举报
1
1069
1050
初露锋芒
;build extension data (setqxdata (list(list -3 (list "barinfo"(cons 1040 ps);real(cons 1041 ln);distance(cons 1000 hws);string (cons 1000 hwr);string ;etc etc...))))(setq xdlist (append elist xdata));append extension data to entity list(entmod xdlist); setting data, modify entity list(entupd en); update entity, optonal
35
2471
2447
(defun c:bara ()(setq n (getint "\nEnter number of bars"))(setq d (getint "\nEnter diameter of bars"))(regapp "barinfo")(setq oldlist (entget (car (entsel))))(setq barinfo [color=red](list (list[/color] -3 [color=red](list[/color] "barinfo" [color=red](cons 1070[/color] n) [color=red](cons[/color] 1070 d))))[color=red])[/color](setq newlist (append oldlist barinfo))(entmod newlist))
114
1万
中流砥柱
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-8-15 18:43 , Processed in 2.379823 second(s), 64 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端