HzCAD 发表于 2006-8-12 14:43:00

如何在非模式对话框中使用acedCommand()函数?

我想在一个非模式对话框中使用acedCommand()函数来插入一个块.程序编译和连接没问题,只是执行的时候acedCommand()没起作用.在调试的状态下单步运行到acedCommand(),没有发现什么特殊情况,函数里的各个参数都很正常.我在其他的地方使用这个acedCommand(),也可以正常使用.
我的对话框继承于CAcUiDialog,会不会它不支持acedCommand()函数?
整个acedCommand(),函数为:
acedCommand(RTSTR,"insert",RTSTR,strNameOfBlock,RTPOINT,ptInsert,
RTSTR,"1",RTSTR,"1",RTSTR,"0",RTNONE);

HzCAD 发表于 2006-8-13 10:59:00

问题已解决,下面是从Discussion Groups Index > AutoCAD Groups > Autodesk ObjectARX > acedCommand don't work 下复制过来的,要知道详细信息,可以google一下
how can use acedCommand in a modeless dialog?
   acedCommand cannot be used directly from the "application context". See
"Code Differences under the Application Execution Context" topic in ARX docs
for details.

gis_nhz 发表于 2007-2-8 15:49:00

能否告知详细解决方法
页: [1]
查看完整版本: 如何在非模式对话框中使用acedCommand()函数?