5
49
44
初来乍到
使用道具 举报
63
6297
6283
后起之秀
(defun c:TesT (/ *error* acdoc ss1 ss2 l n str e); TharwaT 20. 04. 2011 (vl-load-com) (defun *error* (msg) (or (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*") (princ (strcat "\n** Error: " msg " **")) ) (princ) ) (setq acdoc (vla-get-ActiveDocument (vlax-get-acad-object))) (vla-StartUndoMark acdoc) (if (and (setq ss1 (entsel "\n First numerical Text :")) (setq ss2 (entsel "\n Second numerical Text :")) (setq l (entsel "\n Select Line :")) ) (progn (setq n (- (atof (cdr (assoc 1 (entget (car ss1))))) (atof (cdr (assoc 1 (entget (car ss2))))) ) ) (setq str (/ (distance (cdr (assoc 10 (setq e (entget (car l))))) (cdr (assoc 11 e)) ) n ) ) (entmakex (list (cons 0 "TEXT") (cons 10 (getpoint "\n Text Location:")) (cons 40 (getvar 'textsize)) (cons 1 (strcat "1:" (rtos str 2 3))) ) ) ) (princ) ) (vla-EndUndoMark acdoc) (c:TesT) (princ))
54
3755
3583
Command: slInitializing...Pipe size & type: 8" PVCSpecify 1st point:Specify 1st elevation: 25.25Specify 2nd point:Specify 2nd elevation: 26177 LF 8" PVC @ 0.42%
0
1
542
502
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-3-10 22:28 , Processed in 0.860516 second(s), 68 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端