几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   [求助][讨论]任意曲线顶点列表 (http://www.dimcax.com/hust/showthread.php?t=10964)

yang686526 2009-04-26 11:46 AM

[求助][讨论]任意曲线顶点列表
 
[求助][讨论]任意曲线顶点列表
www.dimcax.com
[求助][讨论]任意曲线顶点列表
选择任意曲线得到顶点列表,用lisp
d
请帮忙
d
打个比方,下面是选择一条多段线的例子:
(defun c:getpoints(/ data pos points)
(setq data(entget(car(entsel ))))
(while(setq pos(assoc 10 data))
(setq points(append points(list(cdr pos))))
(setq data(subst '(0 . 0)pos data))
)
points)
d


所有的时间均为北京时间。 现在的时间是 08:51 PM.