明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1709|回复: 7

[求助]对话框的初始参数怎么保存

[复制链接]
发表于 2009-9-11 16:51:00 | 显示全部楼层 |阅读模式

对话框的初始参数怎么保存?

发表于 2009-9-11 16:56:00 | 显示全部楼层
请把问题说得详细点。。。初始参数??
发表于 2009-9-11 17:08:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2009-9-11 17:13:00 | 显示全部楼层

对话框程序A,子程序B,B调用A的参数设置~!例程序A设置 x=1 程序B调用x=1……

发表于 2009-9-11 17:15:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2009-9-11 17:20:00 | 显示全部楼层

感觉这样写很费,想优化下,我的第二个程序要用下面程序的参数   

   COLU-La "0"
   COLU-HLTRd "0"
   COLU-C "2"
   COLU-ZJRd "1"
   COLU-GJRd "0"
   COLU-ZJDia "2"
   COLU-GJDia "1"
   COLU-ZJDis "200"
   COLU-GJDis "200"
   COLU-SC "25"
   COLU-CJ "1"
   COLU-BZ "1"
   COLU-JJ "0"
   COLU-ZJRet "0"
   COLU-GJRet "0"
   COLU-GJLen "0"
   COLU-GJ-Mode "COLU-GJ"
   

程序,

(defun C:TT (/ &Dcl_id &LST &LST1 &LST2 &LST3 &LST4 &LST5)
  (if (null COLU-La)
    (setq COLU-La "0"
   COLU-HLTRd "0"
   COLU-C "2"
   COLU-ZJRd "1"
   COLU-GJRd "0"
   COLU-ZJDia "2"
   COLU-GJDia "1"
   COLU-ZJDis "200"
   COLU-GJDis "200"
   COLU-SC "25"
   COLU-CJ "1"
   COLU-BZ "1"
   COLU-JJ "0"
   COLU-ZJRet "0"
   COLU-GJRet "0"
   COLU-GJLen "0"
   COLU-GJ-Mode "COLU-GJ"
    )
  )
  (setq &Dcl_id (load_dialog "JLQ.dcl"))
  (if (new_dialog "colu" &Dcl_id)
    (Progn
      (Setq &LST  (DC-Get-ALLLay)
     &LST1 '("C25"    "C30"    "C35"    "C40"
      "C45"    "C50"    "C55"    "C60"
      "C65"    "C70"    "C75"    "C80"
     )
     &LST2 '("15" "20" "30" "50")
     &LST3 '("HRB235" "HRB335" "HRB400")
     &LST4 (Sky-Set-Rad COLU-ZJRd)
     &LST5 (Sky-Set-Rad COLU-GJRd)
      )
      (DCL-Add-List "COLU-La" &LST COLU-La)
      (DCL-Add-List "COLU-HLTRd" &LST1 COLU-HLTRd)
      (DCL-Add-List "COLU-C" &LST2 COLU-C)
      (DCL-Add-List "COLU-ZJRd" &LST3 COLU-ZJRd)
      (DCL-Add-List "COLU-GJRd" &LST3 COLU-GJRd)
      (DCL-Add-List "COLU-ZJDia" &LST4 COLU-ZJDia)
      (DCL-Add-List "COLU-GJDia" &LST5 COLU-GJDia)
      (SET_TILE "COLU-ZJDis" COLU-ZJDis)
      (SET_TILE "COLU-GJDis" COLU-GJDis)
      (SET_TILE "COLU-SC" COLU-SC)
      (SET_TILE "COLU-CJ" COLU-CJ)
      (SET_TILE "COLU-BZ" COLU-BZ)
      (SET_TILE "COLU-JJ" COLU-JJ)
      (SET_TILE "COLU-ZJRet" COLU-ZJRet)
      (SET_TILE "COLU-GJRet" COLU-GJRet)
      (SET_TILE "COLU-GJLen" COLU-GJLen)
      (SET_TILE "COLU-GJ-Mode" COLU-GJ-Mode)
      (action_tile "COLU-La" "(setq COLU-La $value)")
      (action_tile "COLU-HLTRd" "(setq COLU-HLTRd $value)")
      (action_tile "COLU-C" "(setq COLU-C $value)")
      (action_tile "COLU-ZJRd" "(setq COLU-ZJRd $value)")
      (action_tile "COLU-GJRd" "(setq COLU-GJRd $value)")
      (action_tile "COLU-ZJDia" "(setq COLU-ZJDia $value)")
      (action_tile "COLU-GJDia" "(setq COLU-GJDia $value)")
      (action_tile "COLU-ZJDis" "(setq COLU-ZJDis $value)")
      (action_tile "COLU-GJDis" "(setq COLU-GJDis $value)")
      (action_tile "COLU-SC" "(setq COLU-SC $value)")
      (action_tile "COLU-CJ" "(setq COLU-CJ $value)")
      (action_tile "COLU-BZ" "(setq COLU-BZ $value)")
      (action_tile "COLU-JJ" "(setq COLU-JJ $value)")
      (action_tile "COLU-ZJRet" "(setq COLU-ZJRet $value)")
      (action_tile "COLU-GJRet" "(setq COLU-GJRet $value)")
      (action_tile "COLU-GJLen" "(setq COLU-GJLen $value)")
      (action_tile
 "COLU-GJ-Mode"
 "(setq COLU-GJ-Mode $value)"
      )
      (start_dialog)
    )
  )
)

 

发表于 2009-9-11 17:24:00 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2009-9-12 23:03:00 | 显示全部楼层
用文本格式文件储存再调用即可
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-6 09:43 , Processed in 0.200426 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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