明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1648|回复: 5

怎樣只選取一條多義線上的某一段線段?

[复制链接]
发表于 2004-12-26 09:59:00 | 显示全部楼层 |阅读模式
怎样在选取一条多义线后而只夹取线上的某一段线段?
发表于 2004-12-26 10:06:00 | 显示全部楼层
前题是你必需安装expresstools这个工具才好使! (defun c:test ()
(setq ent (entsel))
(setq p (cadr ent)
ent (car ent)
)
(setq pp (vlax-curve-getclosestpointto ent (trans p 1 0))
n (fix (vlax-curve-getparamatpoint ent pp))
)
(setq ll (acet-pline-segment-list ent))
(list n
(nth n (car ll))
(nth (1+ n) (car ll))
(nth n (cadr ll))
(nth n (caddr ll))
(nth n (last ll))
)
)
发表于 2012-1-7 08:15:40 | 显示全部楼层
0451doctor 发表于 2004-12-26 10:06
前题是你必需安装expresstools这个工具才好使!

没有装expresstools的情况下怎么做呢?有些程序不只是自己用,别人有时没有或者不会装expresstools(默认状态下CAD不装这个),没有纯LISP的吗?
发表于 2012-1-7 09:29:10 | 显示全部楼层
Ref:
http://www.mjtd.com/Functions/ShowClass.asp?ClassID=18
==>
  coordsofsegbypick 返回多义线所点击子段的端点坐标
  coodsofsegbynum 返回多段线第n子段的端点坐标
  oodsofnumpoint 返回多段线第n点的坐标
发表于 2013-1-5 15:27:30 | 显示全部楼层
Ref:
http://www.mjtd.com/Functions/ShowClass.asp?ClassID=18
==>
  coordsofsegbypick 返回多义线所点击子段的端点坐标
  coodsofsegbynum 返回多段线第n子段的端点坐标
  oodsofnumpoint 返回多段线第n点的坐标
这个site打不开啊
发表于 2013-1-5 16:02:13 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-2 10:58 , Processed in 0.144996 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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