今天是                                        会员登录 | 中鼎首页 | 鉴定 | 律师 | 公证 | 仲裁 | 帮助
   
  鉴定人 鉴定机构 一对一咨询 众言堂 鉴定论文 鉴定论坛  
鉴定之家 | 鉴 定 人 | 鉴定机构 | 一对一咨询 | 公开咨询 | 鉴定委托 | 鉴定合作 | 鉴定论坛 | 鉴定随笔 | 鉴定范围
鉴定新闻| 众 言 堂| 鉴定案例 | 鉴定论文 | 鉴定法规| 鉴定常识| 鉴定标准| 鉴定收费| 鉴定程序| 鉴定人才
中鼎鉴定网
当前位置:中鼎网 >> 常识 >> 鉴定常识 >> 海事鉴定常识>> 正文
基于组件的三维CAD系统开发的关键技术研究
来源:互联网 编辑:中鼎网 发布时间:2008年04月10日09:20:09

(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

               (setq b1 (nth nm x))

              (setq x1 (cadr b1))

              (setq y1 (caddr b1))

              (setq z1 (cadddr b1))

              (setq glb (list x1 y1))

              (command glb)

           ) )

           (setq nm (- nm 1))

       )))

      (command "")

      (setq n (+ n 1))

)))


    (2)切剖面

    输入剖面编号,在平面地形图上指定两点确定剖面剖切线位置,指定剖面图起点,利用AutoCAD的inters函数搜索剖切线与地形图的全部交点,自动计算交点坐标,计算交点与剖面位置起点的距离,按各交点高程和与起点的距离形成剖面图各点坐标,即可用本文实例1坐标画线生成地形图的剖面。


(defun dxtent1 ()

  (setq n 0 xdzb nil)

  (setq xds 0)

  (setq sh (sslength e1))

上一页123456下一页
关于中鼎About Us广告服务法律服务加盟合作诚聘英才联系我们网站地图友情链接我要留言网站帮助
司法鉴定会员请加QQ:840841090 律师会员请加QQ:970573375 司法鉴定咨询请加QQ:565376770 联系电话:0631-5288148 技术支持:商桥网络
中鼎网版权所有 2006-2008 ALLRIGHTS RESERVED 鲁ICP备06028263号