Display Handling when Batch - creating Elements
Display Handling when Batch - creating Elements
When batch - creating elements, if the creation process takes a long time, the following situation will occur: if the display is not refreshed, the created objects will be displayed in batches after the command is completed. When the screen refresh operation is added, the created elements will be displayed immediately after each screen refresh. However, it should be noted that the elements under the part geometry cannot be displayed dynamically. The following is a code example:
CATInteractiveApplication * pApplication = NULL ;
pApplication = (CATInteractiveApplication *)CATApplication::MainApplication();
if(pApplication == NULL)
{
MessageBoxA(NULL,"pApplication is NULL","TestConvexHullCmd",MB_OK);
return FALSE;
}
//create element process
//add your code here
//UpdateDisplay
pApplication->UpdateDisplay();

浙公网安备 33010602011771号