明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1197|回复: 1

[提问] 关于添加支持路径在WIN7下失效,怎么解决?

[复制链接]
发表于 2013-8-7 08:30:02 | 显示全部楼层 |阅读模式
;; 添加支持路径。这里只添加一条。多条的话自行修改。
  (Xman_AddSupportPath (GetXmanPath) nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\SYS") nil)
;;--------------------------------------------------------------
    (setq acadver (atof (getvar "acadver")))
    (cond
      ((and (>= acadver 16.0) (<= acadver 16.2))
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\SYS16") nil)
      )
      ((and (>= acadver 17.0) (<= acadver 17.2))
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\SYS17") nil)
      )
      ((> acadver 17.2)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\SYS18") nil)
    )
  )
;;--------------------------------------------------------------
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\APS有雪") nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\Dwb") nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\MSteel") nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\常用程序") nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\高山流水") nil)
  (Xman_AddSupportPath (strcat (GetXmanPath) "\\小伙拾遗") nil)
  (Xman_AddSupportPath (strcat "E:\\结构电子书籍") nil)


上面的函数在XP下运行没有问题,但是在WIN7下无法增加搜索路径?什么问题?
还有一个问题,我想把这些路径前置到搜索路径的最上方,要怎么写?

"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2013-8-7 14:17:11 | 显示全部楼层
本帖最后由 luowy 于 2013-8-7 14:20 编辑

有那么复杂么????
lsp
(setq fileSupportPath (getenv "ACAD"))
(setq fileSupportPath (strcat yourFileSupportPathHere fileSupportPath))
(setenv "ACAD" fileSupportPath)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-28 01:41 , Processed in 0.182694 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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