明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1826|回复: 3

如何得到当前用户坐标系下复合线的顶点坐标?

[复制链接]
发表于 2004-6-25 00:52:00 | 显示全部楼层 |阅读模式
请教各位朋友:


  如何得到当前坐标系下复合线的顶点坐标,并将这些坐标导出为文本文件?
发表于 2004-6-27 22:22:00 | 显示全部楼层
2楼返回的是世界坐标系坐标,返回当前用户坐标系可把(foreach x Entlist
(if (equal (car x) 10)
(setq PLlist (cons (cdr x) PLlist))
)
改为(foreach x Entlist
(if (equal (car x) 10)
(setq PLlist (cons (trans (cdr x) 0 1) PLlist))
)
回复 支持 1 反对 0

使用道具 举报

发表于 2004-6-25 07:17:00 | 显示全部楼层
;;;取得多义线第M个顶点的坐标
(defun Passoc (m Entname / x Entlist PLlist)
(if Entname
(progn
(setq Entlist (entget Entname))
(foreach x Entlist
(if (equal (car x) 10)
(setq PLlist (cons (cdr x) PLlist))
)
)
(nth m PLlist)
)
)
) 生成文本文件你还是自己编吧,看看书........
 楼主| 发表于 2004-6-29 18:49:00 | 显示全部楼层
谢谢二位朋友,在你们的帮助下,问题已经解决!thank you!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-10-1 02:29 , Processed in 0.157690 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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