明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1510|回复: 3

xshrimp,求你的两个函数GETVALUE和SetValue,谢谢

[复制链接]
发表于 2009-3-19 10:27:00 | 显示全部楼层 |阅读模式
本帖最后由 作者 于 2009-3-19 11:16:49 编辑

xshrimp哥,帮帮我啊
发表于 2009-3-19 11:52:00 | 显示全部楼层

回复:(koyote)xshrimp,求你的两个函数GETVALUE和Se...

这个是秋枫的代码

;;设置保存值
  (defun SetValue (key value)
    (if (assoc key DCLValues)
      (setq DCLValues (subst (cons key value)
        (assoc key DCLValues)
        DCLValues
        )
      )
      (setq DCLValues (cons (cons key value) DCLValues))
    )
  )
  ;;读取保存值
  (defun GetValue (key / r)
    (if (assoc key DCLValues)
      (cdr (assoc key DCLValues))
      (cdr (assoc key default_dclvalues))
    )
  )

 楼主| 发表于 2009-3-19 12:21:00 | 显示全部楼层

谢谢!!!!!xshrimp和秋枫大哥哥,

 楼主| 发表于 2009-3-19 12:38:00 | 显示全部楼层

大哥,我看到你的函数集,有几个函数我想用,可以给份我吗谢谢

GPS->LSTPRINC

gps->nssget

这两个我看了我的程序借用一下,可以吗?xshrimp大哥哥,

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-29 05:11 , Processed in 0.183614 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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