the fuction below can refresh CAD's whole drawing area .
void UpdateScreen()
{
actrTransactionManager->flushGraphics();
acedUpdateDisplay();
}
I wonder whether there is a funtion that can refresh partially? becaused mybe the dwg is very large and has too many entities, the UpdateScreen() may take too much resource. and If I know the area to be refreshed on the screen, so ,is there a fuction to do this in OjbectARX?
Solved! Go to Solution.
Solved by maisoui. Go to Solution.
I don't know such a function. But what is your goal? You want to update a set of entities?
From acedUpdateDisplay documentation:
AutoCAD manages its display area in the most efficient way by keeping track of which portions of the screen are affected as you make various calls to AutoCAD
It seems that acedUpdateDisplay is optimized. Maybe you can consider to use commands _.regen or _.regenall?
Regards,
Jonathan