您现在的位置: 公文易 >> 免费论文 >> 理工论文 >> 论文正文 >> CAD技术在水利水电工程中的应用
归档:理工论文 推荐度:
日期:2006-3-15 9:20:00

CAD技术在水利水电工程中的应用

字体大小:
CAD技术在水利水电工程中的应用
(setq e (ssget"X" (list (cons 0 "LWPOLYLINE"))))

  (setq sh (sslength e))

  (if e

    (while (< n sh)

      (setq e1 (ssname e n))

      (command "pedit" e1 "d" "")

      (setq x (entget e1))

      (setq ngc (atof (setq la (fld 8 x))))

      (command "explode" e1)

      (setq n (+ n 1))

 ) ) )

(defun fld (num lst)

      (cdr (assoc num lst))

    )

(defun c:spltol ()

;SPLINE转化为LINE

  (setq n 0)

  (setq e (ssget "X" (list (cons 0 "SPLINE"))))

  (setq sh (sslength e))

  (if e

    (while (< n sh)

      (setq x (entget (setq e1 (ssname e n))))

      (setq nla (itoa (fix (caddr (fld 10 x)))))

      (if (= (fld 0 x) "SPLINE")

       (progn

         (command "layer" "n" nla "c"

"6" nla "s" nla "")

         (command"line")

         (setq    nm   (length x)

              dzs  (fld 73 x)      dzs1 (fld 74 x))

         (while (> nm 5)

           (if    (= (car (nth nm x)) 10)

             (progn

        &n

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页




推荐文章

我得网服务大全:适时新闻 | 秘书资讯 | 专题文档 | 实用查询 | 新华字典,词典 | 成语词典 | 全唐诗 | 歇后语大全
关于我们 | 版权与隐私 | 爱心救助 | 加入会员 | 网站地图 | !报告错误 | 联系方式
公文易爱心文秘网,我得网 © 2003-2009