明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: 荒野孤行

[源码] 查找悬挂线及其断开位置

  [复制链接]
 楼主| 发表于 2015-6-4 22:22 | 显示全部楼层
spp_wall 发表于 2013-10-30 21:00
断点bucuo !!!!!!!!!!1

怎么不错?
发表于 2014-11-22 21:16 | 显示全部楼层
很不错的功能...推荐
发表于 2014-11-22 17:20 | 显示全部楼层
lsp不错,刚开是使用时把人搞懵了,原来使用之前必须先将要检查的对象pe为多义线,那样才有效果!若图元不是多义线,程序中的闭合功能不会执行,所以简单的说,这个lsp针对非多义线目标无效。mj里面有个ple的多义线lsp,结合那个lsp使用,这个程序就很方便了。
发表于 2014-11-7 15:10 | 显示全部楼层
版主厉害的
发表于 2014-8-6 21:56 | 显示全部楼层
关键看这里,和我想的一样
  1. (if (not (vlax-curve-isclosed obj))
  2.     (progn
  3.       (setq pt_start (vlax-curve-getstartpoint obj))
  4.       (setq pt_end (vlax-curve-getendpoint obj))
  5.       (command "circle" pt_start cr)
  6.       (command "circle" pt_end cr)
  7.     )
  8.   )
发表于 2014-8-6 17:31 | 显示全部楼层
谢谢分享。
发表于 2014-1-31 10:02 | 显示全部楼层
  1. ;; 断线查错  需要e派工具箱(XCAD)的支持:http://yunpan.cn/QXQKsW9gAPmpF
  2. (defun c:tt ()
  3.   (xyp-CMDLA0)
  4.   (xyp-MkLaCo "TEST" 1)
  5.   (setq ukw (UKWORD 1 "1 2" "1-闭合/2-检查" ukw)
  6.         i   -1
  7.   )
  8.   (if (setq ss (ssget '((0 . "*polyLINE"))))
  9.     (if        (= ukw "1")
  10.       (command "pedit" "m" ss "" "c" "")
  11.       (while (setq s1 (ssname ss (setq i (1+ i))))
  12.         (if (not (xyp-Curve-Close s1))
  13.           (setq        s2 (xyp-circle (vlax-curve-getStartPoint s1) 100)
  14.                 s3 (xyp-circle (vlax-curve-getEndPoint s1) 100)
  15.           )
  16.         )
  17.       )
  18.     )
  19.   )
  20.   (xyp-CMDLA1)
  21. )
 楼主| 发表于 2014-1-31 01:08 来自手机 | 显示全部楼层
flyfox1047 发表于 2013-12-17 19:13

难道是触摸屏行业的?
发表于 2014-1-17 16:33 | 显示全部楼层
下过来马上就用上了,哈哈 。赞
发表于 2013-12-17 20:24 | 显示全部楼层
这个不错,很需要。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-5 00:57 , Processed in 0.289726 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表