只需一步,快速开始
使用道具 举报
求出两条直线的端点,pt1 pt2 pt3 pt4
(setq ins (inters pt1 pt2 pt3 pt4 nil)) 求出交点
(command "_.ucs" ins "")
楼上的能不能说明白点啊,或者是帮忙编个程序啊,谢谢!
谢谢楼上的热心,但是无法使用,提示无效的函数,请各位再看看啊
好的!
命令: tt选择第一条直线:选择第二条直线: _.ucs当前 UCS 名称: *世界*输入选项 [新建(N)/移动(M)/正交(G)/上一个(P)/恢复(R)/保存(S)/删除(D)/应用(A)/?/世界(W)] <世界>: _non无效的选项关键字。; 错误: 函数被取消
输入选项 [新建(N)/移动(M)/正交(G)/上一个(P)/恢复(R)/保存(S)/删除(D)/应用(A)/?/世界(W)] <世界>:
;;版本差异的原因
(defun c:tt (/ e1 e2 ins) (if (and (setq e1 (entsel "\n选择第一条直线: ")) (setq e2 (entsel "\n选择第二条直线: ")) ) (progn (setq e1 (entget (car e1))) (setq e2 (entget (car e2))) (setq ins (inters (cdr (assoc 10 e1)) (cdr (assoc 11 e1)) (cdr (assoc 10 e2)) (cdr (assoc 11 e2)) nil ) ) (command "_.ucs" "_new" "_non" ins) ) ) (princ))
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-5-17 17:15 , Processed in 0.227354 second(s), 28 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.