|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|