找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 340|回复: 1

[求助]:commands may not be nested more than 4 deep

[复制链接]
发表于 2003-8-19 10:21:48 | 显示全部楼层 |阅读模式

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

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

×
r14,为什么有时候我在执行某个命令时会出现以下错误信息:commands may not be nested more than 4 deep.
它的意思应该是命令嵌套不能超过4层。但对它这个嵌套我不太理解。是一个命令里调用了超过4命令?应该不会。还是命令里套命令,超过了4层,这就很难抑制了,而且为什么是在某个命令要执行几遍才出错,可以说没什么规律。这个错误一出来,程序就要退出了。
不知哪位大虾遇到过这种情况?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
发表于 2003-8-19 23:59:20 | 显示全部楼层

Re: [求助]:commands may not be nested more than 4 deep

最初由 catwang_G 发布
[B]r14,为什么有时候我在执行某个命令时会出现以下错误信息:commands may not be nested more than 4 deep.
它的意思应该是命令嵌套不能超过4层。但对它这个嵌套我不太理解。是一个命令里调用了超过4命令?应该不会。... [/B]


与R14无关的,在R15中也有可能出现.
你看看下面就知道原因了.

[B]Note[/B]
The acedCommand() function supports re-entrance up to four levels deep. AutoLISP does not support re-entrance, so if acedCommand() is called from within a function that has been executed via the AutoLISP/acedDefun() interface, there is no need to worry about re-entering acedCommand(). Commands registered via acedRegCmds->addCommand(), however, do support re-entrance and there is no way to determine how many levels of re-entrance are currently in effect to avoid exceeding the limit of four levels. If you must use acedCommand() in functions registered via acedRegCmds->addCommand(), you can avoid exceeding the re-entry limit of four levels, if you:
  1. Do not use acedCommand() in functions registered as ACRX_CMD_TRANSPARENT
  2. Do not use acedCommand() to execute any other commands registered via acedRegCmds->addCommand()
  3. Do not use acedCommand() to execute anything that will allow user interaction


你多半是在命令函数中没有正确使用acedCommand / ads_command,违背上面的3条
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 02:45 , Processed in 0.276628 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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