几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】move entities between blocks (http://www.dimcax.com/hust/showthread.php?t=17257)

yang686526 2009-05-06 06:06 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 01:17 PM.