![]() |
【转帖】[求助]arx的反应器问题
[求助]arx的反应器问题
[求助]arx的反应器问题 请教各位高手: arx中的反应器是否跟vba中的事件是一个功能,其中的那个函数与vb中的begincommand对应?是commandwillstart么?如果是又该怎么用呢?它与objecterase()有什么区别呢?我的目的就是捕捉autocad的命令,好进一步处理! 小妹刚学arx不久,此问题已找了两天,帮助文件读了不是很懂!哪位高手指点指点!please... 先谢谢了! 还有mm搞cad开发,少见~~ virtual void commandwillstart( const char* cmdstr); cmdstrpassed in string of the command being executed this callback function indicates that the command cmdstr is about to begin execution. cmdstr may be up to 257 characters (including the string terminator). 这个反应器是指命令启动前调用的。是编辑环境里用的 和那个vba是一样的 objecterase 是acdatabase里用的 aceditorreactor command-related functions 谢谢! 呵呵!我也没办法!不过谢谢你,可是我还想问一下acdatabase和aceditorreactor有什么区别?如果我是要对用户删除直线命令作出反应,应该用哪一个?我还得将用户删除的直线同步删除sql serve 我想该用acdbobjectreactor这个类的 acdbobjectreactor notification functions 先添加reactor到line中 用 acdbobject::addreactor function 即 void addreactor( acdbobjectreactor* newobj) const; newobjpointer to transient reactor object to add adds the transient reactor pointed to by pnewobj to the acdbobject object's reactor list. note to add a transient reactor to an object, the object need only be open acdb::kforread (but it also works if it's open acdb::kforwrite). 然后再在 acdbobjectreactor的erased中去调用就可以了 先添加reactor到line中 用 acdbobject::addreactor function 即 void addreactor( acdbobjectreactor* newobj) const; newobjpointer to transient reactor object to add adds the transient reactor pointed to by pnewobj to the acdbobject object's reactor list. note to add a transient reactor to an object, the object need only be open acdb::kforread (but it also works if it's open acdb::kforwrite). 然后再在 acdbobjectreactor的erased中去调用就可以了 江苏昆山小城,欢迎交流 本职工作五金模具设计及加工 及cad软件开发 谢谢了!我试试!呵呵! |
所有的时间均为北京时间。 现在的时间是 09:47 PM. |