乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 59|回复: 3

各位大哥谁能告诉我如何在lisp中得到多义线的各顶点坐标.

[复制链接]

1

主题

1

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2003-7-1 14:32:00 | 显示全部楼层 |阅读模式
回复

使用道具 举报

4

主题

20

帖子

3

银币

初来乍到

Rank: 1

铜币
36
发表于 2003-7-1 14:41:00 | 显示全部楼层
http://bbs.mjtd.com/forum.php?mod=viewthread&tid=437
回复

使用道具 举报

26

主题

3072

帖子

10

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3177
发表于 2003-7-1 14:49:00 | 显示全部楼层
;;
      ;; Get all nodes of the LWPolyline, Polyline.
      ;;
      (defun GetListOfPline (EntityName / SSE_Pline N newEntityName)
        (setq SSE_Pline (entget EntityName))
        (setq LastList nil)
        (if (= (cdr (assoc 0 SSE_Pline)) "LWPOLYLINE")
            (progn
              (setq LastList (LIST (LIST 0 0)))
              (setq N 0)
              (while (/= (nth N SSE_Pline) nil)
                     (if (= (car (nth N SSE_Pline)) 10)
                         (setq LastList (append LastList (list (list (cadr (nth N SSE_Pline)) (caddr (nth N SSE_Pline)) )) ))
                     )
                     (setq N (+ N 1))
              )
              (setq LastList (cdr LastList))
            )
        )
        (if (= (cdr (ASSOC 0 SSE_Pline)) &quotOLYLINE")
            (PROGN
              (setq LastList (list (list 0 0)))
              (setq newEntityName (entnext EntityName))
              (while (= (cdr (assoc 0 (entget newEntityName))) "VERTEX")
                     (setq LastList (append LastList (list (list (cadr (assoc 10 (entget newEntityName))) (caddr (assoc 10 (entget newEntityName))) ))))
                     (setq newEntityName (entnext newEntityName))
              )
              (setq LastList (cdr LastList))
            )
        )
        (setq LastList LastList)
      );_defun
回复

使用道具 举报

124

主题

837

帖子

9

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1333
发表于 2003-7-1 17:16:00 | 显示全部楼层
谢谢各位,再会!!!!!!!!!!!!!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-3 22:22 , Processed in 0.518390 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表