找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 518|回复: 5

[求助]:求助!!!输入命令快捷键后出现一下提示!

[复制链接]
发表于 2004-5-12 11:41:31 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
输入命令快捷键后出现一下提示!命令不能用,用工具栏可用!

出现硬错误 ***
已达内部堆栈限制 (模拟)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
 楼主| 发表于 2004-5-12 12:54:20 | 显示全部楼层
原因找出来了!
原因是我在启动组里面加了几个理正yujiazai文件中没有随机加载的几个lsp文件!
是不是随机加载的lsp个数有限制的原因!
为什么不能在yujiazai文件中把所有用的lsp都加载进取呢?
要不然又要像天正3.0那样,还要自己再编个lsp!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 0 反对 1

使用道具 举报

发表于 2004-5-12 11:47:59 | 显示全部楼层
不知道你输入的是什么命令?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2004-5-12 11:54:35 | 显示全部楼层
标高修改等!还有些其它的!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-5-12 12:23:55 | 显示全部楼层
重装下!
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2004-5-13 21:21:31 | 显示全部楼层
没有限制。

你的那个错误提示表示文件没有找到,看看支持路径或文件名输入是否正确。

一般在使用一种递归加载函数而没有找到文件时会出现这个提示。举个例子,一般可能的函数是这样:

  1. [FONT=courier new](defun c:cmd() (load "cmd.lsp") (c:cmd))[/FONT]

当打入命令cmd而系统没有找到cmd.lsp而导致cmd命令没有被重定义时,结果cmd命令无限递归调用最后堆栈溢出。


你可以使用AutoCAD系统提供的预定义好的autoload函数。

  1. [FONT=courier new]
  2. (autoload "cmd.lsp" '("cmd"))[/FONT]
复制代码


autolisp的autoload函数定义:

  1. [FONT=courier new]
  2. ;;; ===== AutoLoad =====

  3. ;;; Check list of loaded <apptype> applications ("ads" or "arx")
  4. ;;; for the name of a certain appplication <appname>.
  5. ;;; Returns T if <appname> is loaded.

  6. (defun ai_AppLoaded (appname apptype)
  7.    (apply 'or
  8.       (mapcar
  9.         '(lambda (j)
  10.             (wcmatch
  11.                (strcase j T)
  12.                (strcase (strcat "*" appname "*") T)
  13.             )   
  14.          )
  15.          (eval (list (read apptype)))
  16.       )
  17.    )
  18. )

  19. ;;  
  20. ;;  Native Rx commands cannot be called with the "C:" syntax.  They must
  21. ;;  be called via (command).  Therefore they require their own autoload
  22. ;;  command.

  23. (defun autonativeload (app cmdliste / qapp)
  24.   (setq qapp (strcat """ app """))
  25.   (setq initstring "\nInitializing...")
  26.   (mapcar
  27.    '(lambda (cmd / nom_cmd native_cmd)
  28.       (progn
  29.         (setq nom_cmd (strcat "C:" cmd))
  30.         (setq native_cmd (strcat ""_" cmd """))
  31.         (if (not (eval (read nom_cmd)))
  32.             (eval
  33.              (read (strcat
  34.                     "(defun " nom_cmd "()"
  35.                     "(setq m:err *error* *error* *merrmsg*)"
  36.                     "(if (ai_ffile " qapp ")"
  37.                     "(progn (princ initstring)"
  38.                     "(_autoarxload " qapp ") (command " native_cmd "))"
  39.                     "(ai_nofile " qapp "))"
  40.                     "(setq *error* m:err m:err nil))"
  41.                     ))))))
  42.    cmdliste)
  43.   nil
  44. )

  45. (defun _autoqload (quoi app cmdliste / qapp symnam)
  46.   (setq qapp (strcat """ app """))
  47.   (setq initstring "\nInitializing...")
  48.   (mapcar
  49.    '(lambda (cmd / nom_cmd)
  50.       (progn
  51.         (setq nom_cmd (strcat "C:" cmd))
  52.         (if (not (eval (read nom_cmd)))
  53.             (eval
  54.              (read (strcat
  55.                     "(defun " nom_cmd "( / rtn)"
  56.                     "(setq m:err *error* *error* *merrmsg*)"
  57.                     "(if (ai_ffile " qapp ")"
  58.                     "(progn (princ initstring)"
  59.                     "(_auto" quoi "load " qapp ") (setq rtn (" nom_cmd ")))"
  60.                     "(ai_nofile " qapp "))"
  61.                     "(setq *error* m:err m:err nil)"
  62.                     "rtn)"
  63.                     ))))))
  64.    cmdliste)
  65.   nil
  66. )

  67. (defun autoload (app cmdliste)
  68.   (_autoqload "" app cmdliste)
  69. )

  70. (defun autoarxload (app cmdliste)
  71.   (_autoqload "arx" app cmdliste)
  72. )

  73. (defun autoarxacedload (app cmdliste / qapp symnam)
  74.   (setq qapp (strcat """ app """))
  75.   (setq initstring "\nInitializing...")
  76.   (mapcar
  77.    '(lambda (cmd / nom_cmd)
  78.       (progn
  79.         (setq nom_cmd (strcat "C:" cmd))
  80.         (if (not (eval (read nom_cmd)))
  81.             (eval
  82.              (read (strcat
  83.                     "(defun " nom_cmd "( / oldcmdecho)"
  84.                     "(setq m:err *error* *error* *merrmsg*)"
  85.                     "(if (ai_ffile " qapp ")"
  86.                     "(progn (princ initstring)"
  87.                     "(_autoarxload " qapp ")"
  88.                     "(setq oldcmdecho (getvar "CMDECHO"))"
  89.                     "(setvar "CMDECHO" 0)"
  90.                     "(command " ""_" cmd """ ")"
  91.                     "(setvar "CMDECHO" oldcmdecho))"
  92.                     "(ai_nofile " qapp "))"
  93.                     "(setq *error* m:err m:err nil)"
  94.                     "(princ))"
  95.                     ))))))
  96.    cmdliste)
  97.   nil
  98. )

  99. (defun _autoload (app)
  100. ; (princ "Auto:(load ") (princ app) (princ ")") (terpri)
  101.   (load app)
  102. )

  103. (defun _autoarxload (app)
  104. ; (princ "Auto:(arxload ") (princ app) (princ ")") (terpri)
  105.   (arxload app)
  106. )

  107. (defun ai_ffile (app)
  108.   (or (findfile (strcat app ".lsp"))
  109.       (findfile (strcat app ".exp"))
  110.       (findfile (strcat app ".exe"))
  111.       (findfile (strcat app ".arx"))
  112.       (findfile app)
  113.   )
  114. )

  115. (defun ai_nofile (filename)
  116.   (princ
  117.     (strcat "\nThe file "
  118.             filename
  119.             "(.lsp/.exe/.arx) was not found in your search path folders."
  120.     )
  121.   )
  122.   (princ "\nCheck the installation of the support files and try again.")
  123.   (princ)
  124. )[/FONT]
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2025-9-11 20:57 , Processed in 0.395912 second(s), 43 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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