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

move entities between blocks
move entities between blocks
hello,
can anyone please help me, how can i move entities from one to another block.
both blocks are in the same database.
apparently appendoddbentity() method does not work, while database resident entities can not be added with this method.
is there any method, just to remap entities from one to another block?
the explodetoblock functionality is not good for my problem.
i just want to traverse through one block and move each entity to another.
regards, tomaz
use oddbdatabase::deepcloneobjects(). it will clone objects and add them to specified owner within the same database.
after the operation you can erase original objects.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)