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

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

字体大小:
CAD技术在水利水电工程中的应用
(defun c:seepmesh()

  (if fn

  (setq fn (getfiled "渗流结果文件名" fn "" 2))

  (setq fn (getfiled "渗流结果文件名" "" "" 2)))

  (setq f (open fn "r"))

  (setq md (read-line f))

  (while (/= (substr md 25 8) "单元总数")

    (setq md (read-line f))

  );定位单元总数

  (setq dyzs (atoi (substr md 58 5)));读单元总数

  (setq md (read-line f))

  (setq jdzs (atoi (substr md 58 5)));读节点总数

  (setq md (read-line f))

  (setq clh (atoi (substr md 58 5)));读材料总数

  (setq m 0)

  (repeat clh

    (setq m (+ 1 m))

    (setq tcm (strcat "zclh" (itoa m)))

    (command "layer" "m" tcm "c" (itoa m) tcm "")

  );按材料种类生成图层名称

 (setq m 0 n 0)

 (repeat dyzs;对单元循环,dycfb中存放单元信息

  (setq m (+ m 1))

  (setq clh (nth 0 (nth m dycfb)))

  (setq jdh1 (nth 1 (nth m dycfb)))

  (setq jdh2 (nth 2 (nth m dycfb)))

  (setq jdh3 (nth 3 (nth m dycfb)))

  (setq jdh4 (nth 4 (nth m dycfb)))

  (command "layer" "s" (strcat "zclh" (itoa clh)) "")

  (command "pline";绘制单元网格

    (nth jdh1 jdzbb)

    (nth jdh2 jdzbb)

    (nth jdh3 jdzbb)

  (nth jdh4 jdzbb) "c")

  (setq bzdzb (mapcar '+ (nth jdh1 jdzbb)  (nth jdh2 jdzbb)

  (nth jdh3 jdzbb) (nth jdh4 jdzbb)))

  (setq bzdzb (list (/ (car bzdzb) 4.0) (/ (cadr bzdzb) 4.0)))

  (command "text" "m" bzdzb "0.5" "0" (itoa m))

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




推荐文章

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