查看单个帖子
旧 2009-05-07, 06:01 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】user Block

user block
user block
i have a database reactor added to my project and i think the following event gets called (for each entity in the user block) when i call undo
of the "user block" creation.
void cdbreactor:bjectunappended(const oddbdatabase* pdb,const oddbobject* pobject) //cdbreactor is derived from database reactor class
{}
inside the above event , i would like to know whether the pobject is an entity within a user defined block or not. how can i do that?
i am getting the ownerid of pobject and if pobject is an entity , i am opening the ownerid object from within the even handler . for this specific (undoing block creation) , when i try to do the same , i am getting the error "was open for undo"
try to open owner "for notify": openobject(oddb::kfornotify)
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)