找回密码
 [加入论坛]
查看: 1495|回复: 4

人气不很旺 啊。

[复制链接]
koalabear 发表于 2004-12-21 03:10 | 显示全部楼层 |阅读模式
<>人气不很旺阿。沈斑竹,没开发什么新产品让大家也试用一下。提高一下工作效率。</P>
<P>给大家发个新写的程序,绘制槽钢用,虽然论坛有很多但用起来不舒服。就自己整了个。大家都试试 。</P>
[此贴子已经被作者于2004-12-20 19:12:09编辑过]

 楼主| koalabear 发表于 2004-12-21 03:12 | 显示全部楼层
不知道怎么传不了.我把程序贴出来吧.
回复 顶 踩

使用道具 举报

 楼主| koalabear 发表于 2004-12-21 03:13 | 显示全部楼层
<>;;;角钢标准号GB9787-88
(defun NAMEerror (str)
  (if (/= str "程序取消运行")
    (princ (strcat "\n***错误:***" str "***"))
  );;; if
    (setvar "osmode" os)
    (setq *error* olderr)
)
(defun C:jg (
      /    p1  p2    p3    p4    p5  p6    p7    p8
      p9    names olderr      dcl_id  siz   userclick
      file  fp  line1 d1    d2    b  bb    we    r1
      p4a   p6a  p8a
     )</P><P>;;;  (princ "123")
  (graphscr)</P><P>  (setq olderr *error*
*error* NAMEerror
  )
;;; setq</P><P>  (setq names (list "等边角钢部分"     "  20x20x3"
      "  20x20x4"        "  25x25x3"
      "  25x25x4"        "  30x30x3"
      "  30x30x4"        "  36x36x3"
      "  36x36x4"        "  36x36x5"
      "  40x40x3"        "  40x40x4"
      "  40x40x5"        "  45x45x3"
      "  45x45x4"        "  45x45x5"
      "  45x45x6"        "  50x50x3"
      "  50x50x4"        "  50x50x5"
      "  50x50x6"        "  56x56x3"
      "  56x56x4"        "  56x56x5"
      "  56x56x8"        "  63x63x4"
      "  63x63x5"        "  63x63x6"
      "  63x63x8"        "  63x63x10"
      "  70x70x4"        "  70x70x5"
      "  70x70x6"        "  70x70x7"
      "  70x70x8"        "  75x75x5"
      "  75x75x6"        "  75x75x7"
      "  75x75x8"        "  75x75x10"
      "  80x80x5"        "  80x80x6"
      "  80x80x7"        "  80x80x8"
      "  80x80x10"       "  90x90x6"
      "  90x90x7"        "  90x90x8"
      "  90x90x10"       "  90x90x12"
      "  100x100x6"      "  100x100x7"
      "  100x100x8"      "  100x100x10"
      "  100x100x12"     "  100x100x14"
      "  100x100x16"     "  110x110x7"
      "  110x110x8"      "  110x110x10"
      "  110x110x12"     "  110x110x14"
      "  125x125x8"      "  125x125x10"
      "  125x125x12"     "  125x125x14"
      "  140x140x10"     "  140x140x12"
      "  140x140x14"     "  140x140x16"
      "  160x160x10"     "  160x160x12"
      "  160x160x14"     "  160x160x16"
      "  180x180x12"     "  180x180x14"
      "  180x180x16"     "  180x180x18"
      "  200x200x14"     "  200x200x16"
      "  200x200x18"     "  200x200x20"
      "  200x200x24"
     )
  )
  (setq dcl_id (load_dialog "jg.dcl"))
  (if (not (new_dialog "jg" dcl_id))
    (exit)
  )
;;;if
  (start_list "selections")
  (mapcar 'add_list names)
  (end_list)
  (action_tile
    "accept"
    (strcat
      "(progn (setq siz (atof (get_tile \"selections\")))"
      "(done_dialog)(setq userclick T))"
    )
;;;strcat
  )
;;;action_tile
  (action_tile
    "cancel"
    "(done_dialog)(setq userclick nil)"
  )
;;;action_tile "cancel"
  (start_dialog)
  (unload_dialog dcl_id)
  (if userclick
    (progn
      (setq siz (fix siz))
      (setq siz (nth siz names))
    )
;;;progn
  )
;;;if
  (if (= userclick nil)
    (exit)
  )
;;;if
  (setq file (findfile "jiaogang.dat"))
  (setq fd (open file "r"))
  (setq line1 (read-line fd))
  (while line1
    (if (= line1 (strcat siz))
      (progn
(setq datlin (read-line fd))
(setq line1 nil)
      )
;;;progn
    )
;;;if
    (setq line1 (read-line fd))
  )
;;;while
  (close fd)</P><P>;;; ==== Set Parameters from Data Line ====</P><P>  (setq d1 (atof (substr datlin 1 9))
d2 (atof (substr datlin 10 18))
bb (atof (substr datlin 19 27))
r1 (atof (substr datlin 28 36))
we (atof (substr datlin 37 45))
  )
;;;setq</P><P>;;; ==== Draw ersa Section Profile Section ====</P><P>  (initget 7)
  (setq p1 (getpoint (strcat "\n输入图形输入点 &lt;" siz "&gt; : ")))
  (setvar "clayer" "0")
  (setq b (/ bb 3.0))
  (setq p2  (polar p1 (* pi 0.5) d1)
p3  (polar p2 0 (* 2 b))
p4a (polar p3 0 b)
p4  (polar p4a (* pi 1.5) b)
p5  (polar p4a (* pi 1.5) (- d1 (* 3 b) r1))
p6a (polar p4a (* pi 1.5) (- d1 (* 3 b)))
p6  (polar p6a 0 r1)
p7  (polar p6 0 (- d2 r1 (* 4 b)))
p8a (polar p6 0 (- d2 r1 (* 3 b)))
p8  (polar p8a (* pi 1.5) b)
p9  (polar p8 (* pi 1.5) (* 2 b))
;;; p10a (polar p1 rot (/ b 2))
;;; p10 (polar p10a (+ rot (* pi 1.5)) 60)
  )</P><P>  (command ".pline"    p1    "width" 0.0    0.0    p2
    p3    "arc"   p4    "line"  p5    "arc"   p6
    "line"  p7    "arc"   p8    "line"  p9    "close"
   )
  (command "text"
    p9
    (* 3 b)
    0
    (strcat "角钢:"
     siz
     " 单位质量: "
     (rtos we 2)
     " Kg"
    )
  )</P><P>
  (prin1)
)
(prompt "命令提示符&lt;&lt;&lt;C:jg&gt;&gt;&gt;")</P>
回复 顶 踩

使用道具 举报

 楼主| koalabear 发表于 2004-12-21 03:15 | 显示全部楼层
<>jg: dialog {
      spacer;
      label = "角钢绘制程序";</P><P>
   
  : list_box {
    label = "选取角钢形式:";
    key = "selections";
    height = 20;
    allow_accept = true;
  }</P><P>  spacer;
  
  ok_cancel;</P><P>  :boxed_row {
          :paragraph{
          :text_part {
           label = "只支持2000以上版本";
          }
          :text_part{
          label = "版权所有,严禁用作商业用途";
          }
        }
      }
    }
//</P>
回复 顶 踩

使用道具 举报

 楼主| koalabear 发表于 2004-12-21 03:18 | 显示全部楼层
<>还有一个数据库.保存名字是jiaogang.dat ,     dcl名字是jg</P><P>  20x20x3
20.0000  20.0000  3.00000  3.50000  0.88900
  20x20x4
20.0000  20.0000  4.00000  3.50000  1.14500
  25x25x3
25.0000  25.0000  3.00000  3.50000  1.12400
  25x25x4
25.0000  25.0000  4.00000  3.50000  1.45900
  30x30x3
30.0000  30.0000  3.00000  4.50000  1.37300
  30x30x4
30.0000  30.0000  4.00000  4.50000  1.78600
  36x36x3
36.0000  36.0000  3.00000  4.50000  1.65600
  36x36x4
36.0000  36.0000  4.00000  4.50000  2.16300
  36x36x5
36.0000  36.0000  5.00000  4.50000  2.65400
  40x40x3
40.0000  40.0000  3.00000  5.00000  1.85200
  40x40x4
40.0000  40.0000  4.00000  5.00000  2.42200
  40x40x5
40.0000  40.0000  5.00000  5.00000  2.97600
  45x45x3
45.0000  45.0000  3.00000  5.00000  2.08800
  45x45x4
45.0000  45.0000  4.00000  5.00000  2.73600
  45x45x5
45.0000  45.0000  5.00000  5.00000  3.36900
  45x45x6
45.0000  45.0000  6.00000  5.00000  3.98500
  50x50x3
50.0000  50.0000  3.00000  5.50000  2.33200
  50x50x4
50.0000  50.0000  4.00000  5.50000  3.05900
  50x50x5
50.0000  50.0000  5.00000  5.50000  3.77000
  50x50x6
50.0000  50.0000  6.00000  5.50000  4.46500
  56x56x3
56.0000  56.0000  3.00000  6.00000  2.62400
  56x56x4
56.0000  56.0000  4.00000  6.00000  3.44600
  56x56x5
56.0000  56.0000  5.00000  6.00000  4.25100
  56x56x8
56.0000  56.0000  8.00000  6.00000  6.56800
  63x63x4
63.0000  63.0000  4.00000  7.00000  3.90700
  63x63x5
63.0000  63.0000  5.00000  7.00000  4.82200
  63x63x6
63.0000  63.0000  6.00000  7.00000  5.72100
  63x63x8
63.0000  63.0000  8.00000  7.00000  7.46900
  63x63x10
63.0000 63.0000  10.0000  7.00000  9.15100
  70x70x4
70.0000  70.0000  4.00000  8.00000  5.81800
  70x70x5
70.0000  70.0000  5.00000  8.00000  6.90500
  70x70x6
70.0000  70.0000  6.00000  8.00000  7.97600
  70x70x7
70.0000  70.0000  7.00000  8.00000  9.03000
  70x70x8
70.0000  70.0000  8.00000  8.00000  11.0890
  80x80x5
80.0000  80.0000  5.00000  9.00000  6.21100
  80x80x6
80.0000  80.0000  6.00000  9.00000  7.37600
  80x80x7
80.0000  80.0000  7.00000  9.00000  8.52500
  80x80x8
80.0000  80.0000  8.00000  9.00000  9.65800
  80x80x10
80.0000  80.0000  10.0000  9.00000  11.8740
  90x90x6
90.0000  90.0000  6.00000  10.0000  8.35000
  90x90x7
90.0000  90.0000  7.00000  10.0000  9.65600
  90x90x8
90.0000  90.0000  8.00000  10.0000  10.9460
  90x90x10
90.0000  90.0000  10.0000  10.0000  13.4760
  90x90x12
90.0000  90.0000  12.0000  10.0000  15.9400
  100x100x6
100.000  100.000  6.00000  12.0000  9.36600
  100x100x7
100.000  100.000  7.00000  12.0000  10.8300
  100x100x8
100.000  100.000  8.00000  12.0000  12.2760
  100x100x10
100.000  100.000  10.0000  12.0000  15.1200
  100x100x12
100.000  100.000  12.0000  12.0000  17.8980
  100x100x14
100.000  100.000  14.0000  12.0000  20.6110
  100x100x16
100.000  100.000  16.0000  12.0000  23.2570
  110x110x7
110.000  110.000  7.00000  12.0000  11.9280
  110x110x8
110.000  110.000  8.00000  12.0000  13.5320
  110x110x10
110.000  110.000  10.0000  12.0000  16.6900
  110x110x12
110.000  110.000  12.0000  12.0000  19.7820
  110x110x14
110.000  110.000  14.0000  12.0000  22.8090
  125x125x8
125.000  125.000  8.00000  14.0000  15.5040
  125x125x10
125.000  125.000  10.0000  14.0000  19.1330
  125x125x12
125.000  125.000  12.0000  14.0000  22.6960
  125x125x14
125.000  125.000  14.0000  14.0000  26.1930
  140x140x10
140.000  140.000  10.0000  14.0000  21.4880
  140x140x12
140.000  140.000  12.0000  14.0000  25.5220
  140x140x14
140.000  140.000  14.0000  14.0000  29.4900
  140x140x16
140.000  140.000  16.0000  14.0000  33.3930 </P><P>
  160x160x10
160.000  160.000  10.0000  16.0000  24.7290
  160x160x12
160.000  160.000  12.0000  16.0000  29.3910
  160x160x14
160.000  160.000  14.0000  16.0000  33.9870
  160x160x16
160.000  160.000  16.0000  16.0000  38.5180
  180x180x12
180.000  180.000  12.0000  16.0000  33.1590
  180x180x14
180.000  180.000  14.0000  16.0000  38.3830
  180x180x16
180.000  180.000  16.0000  16.0000  43.5420
  180x180x18
180.000  180.000  18.0000  16.0000  48.6340
  200x200x14
200.000  200.000  14.0000  18.0000  42.8940
  200x200x16
200.000  200.000  16.0000  18.0000  48.6800
  200x200x18
200.000  200.000  18.0000  18.0000  54.4010
  200x200x20
200.000  200.000  20.0000  18.0000  60.0560
  200x200x24
200.000  200.000  24.0000  18.0000  71.1680
不等边角钢</P><P>  25x16x3
25.0000  16.0000  3.00000  3.50000  0.91200
  25x16x4
25.0000  16.0000  4.00000  3.50000  1.17600
  32x20x3
32.0000  20.0000  3.00000  3.50000  1.49200
  32x20x4
32.0000  20.0000  4.00000  3.50000  1.93900
  40x25x3
40.0000  25.0000  3.00000  4.00000  1.48400
  40x25x4
40.0000  25.0000  4.00000  4.00000  1.93600
  45x28x3
45.0000  28.0000  3.00000  5.00000  1.68700
  45x28x4
45.0000  28.0000  4.00000  5.00000  2.20300
  50x32x3
50.0000  32.0000  3.00000  5.50000  1.90800
  50x32x4
50.0000  32.0000  4.00000  5.50000  2.49400
  56x36x3
56.0000  36.0000  3.00000  6.00000  2.15300
  56x36x4
56.0000  36.0000  4.00000  6.00000  2.81800
  56x36x5
56.0000  36.0000  5.00000  6.00000  3.46600
  63x40x4
63.0000  40.0000  4.00000  7.00000  3.18500
  63x40x5
63.0000  40.0000  5.00000  7.00000  3.92000
  63x40x6
63.0000  40.0000  6.00000  7.00000  4.63800
  63x40x7
63.0000  40.0000  7.00000  7.00000  5.33900
  70x45x4
70.0000  45.0000  4.00000  7.50000  3.57000
  70x45x5
70.0000  45.0000  5.00000  7.50000  4.40300
  70x45x6
70.0000  45.0000  6.00000  7.50000  5.21800
  70x45x7
70.0000  45.0000  7.00000  7.50000  6.01100
  75x50x5
75.0000  50.0000  5.00000  8.00000  4.80800
  75x50x6
75.0000  50.0000  6.00000  8.00000  5.69900
  75x50x8
75.0000  50.0000  8.00000  8.00000  7.43100
  75x50x10
75.0000  50.0000  10.0000  8.00000  9.09800
  80x50x5
80.0000  50.0000  5.00000  8.00000  5.00500
  80x50x6
80.0000  50.0000  6.00000  8.00000  5.93500
  80x50x7
80.0000  50.0000  7.00000  8.00000  6.84800
  80x50x8
80.0000  50.0000  8.00000  8.00000  7.74500
  90x56x5
90.0000  56.0000  5.00000  9.00000  5.66100
  90x56x6
90.0000  56.0000  6.00000  9.00000  6.71700
  90x56x7
90.0000  56.0000  7.00000  9.00000  7.75600
  90x56x8
90.0000  56.0000  8.00000  9.00000  8.77900
  100x63x6
100.000  63.0000  6.00000  10.0000  7.55000
  100x63x7
100.000  63.0000  7.00000  10.0000  8.72200
  100x63x8
100.000  63.0000  8.00000  10.0000  9.87800
  100x63x10
100.000  63.0000  10.0000  10.0000  12.1420
  100x80x6
100.000  80.0000  6.00000  10.0000  8.35000
  100x80x7
100.000  80.0000  7.00000  10.0000  9.65600
  100x80x8
100.000  80.0000  8.00000  10.0000  10.9460
  100x80x10
100.000  80.0000  10.0000  10.0000  11.4760
  110x70x6
110.000  70.0000  6.00000  10.0000  8.35000
  110x70x7
110.000  70.0000  7.00000  10.0000  9.65600
  110x70x8
110.000  70.0000  8.00000  10.0000  10.9460
  110x70x10
110.000  70.0000  10.0000  10.0000  13.4760
  125x80x7
125.000  80.0000  7.00000  11.0000  11.0660
  125x80x8
125.000  80.0000  8.00000  11.0000  12.5510
  125x80x10
125.000  80.0000  10.0000  11.0000  15.4740
  125x80x12
125.000  80.0000  12.0000  11.0000  18.3300
  140x90x8
140.000  90.0000  8.00000  12.0000  14.1600
  140x90x10
140.000  90.0000  10.0000  12.0000  17.4750
  140x90x12
140.000  90.0000  12.0000  12.0000  20.7240
  140x90x14
140.000  90.0000  14.0000  12.0000  23.9080
  160x100x10
160.000  100.000  10.0000  13.0000  19.8720
  160x100x12
160.000  100.000  12.0000  13.0000  23.5920
  160x100x14
160.000  100.000  14.0000  13.0000  27.2470
  160x100x16
160.000  100.000  16.0000  13.0000  30.8350
  180x110x10
180.000  110.000  10.0000  14.0000  22.2730
  180x110x12
180.000  110.000  12.0000  14.0000  26.4640
  180x110x14
180.000  110.000  14.0000  14.0000  30.5890
  180x110x16
180.000  110.000  16.0000  14.0000  34.6490
  200x125x12
200.000  125.000  12.0000  14.0000  29.7610
  200x125x14
200.000  125.000  14.0000  14.0000  34.4360
  200x125x16
200.000  125.000  16.0000  14.0000  39.0450
  200x125x18
200.000  125.000  18.0000  14.0000  43.5880 </P><P>
</P>
回复 顶 踩

使用道具 举报

您需要登录后才可以回帖 登录 | [加入论坛]

本版积分规则

手机版|化工技术网- 赠人玫瑰 手有余香 ( 苏ICP备14035884号 )

GMT+8, 2026-12-1 16:27

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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