几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】动画绘图的问题,在线等! (http://www.dimcax.com/hust/showthread.php?t=7194)

yang686526 2009-04-16 09:09 PM

【转帖】动画绘图的问题,在线等!
 
动画绘图的问题,在线等!
动画绘图的问题,在线等!
我想用动画的方式,将cad实全的前后顺序演示出来.
for(iditerator=0;iditerator<arrayobjectid.getsize();iditerator++)
{
acdbobjectid objectid;
acdbentity* pentity;
objectid = arrayobjectid.getat(iditerator);
acdbopenacdbentity(pentity,objectid,acdb::kforwrite);//通过对像的id打开实体
accmcolor color;
color.setrgb(0,255,0);
pentity->setcolor(color);
sleep(100);
pentity->close();
}
可是没有动画的效果,程序只有等完成了,才将所有的实体颜色改变.请问是什么问题,如何实现这种效果.
只有在 pentity->close() 之后,即对象被关闭以后,所有修改的内容才被一次性应用到对象。
silence of happiness....


所有的时间均为北京时间。 现在的时间是 04:40 AM.