mdlElmdscr_display() doesn't display the element

I am porting a MicroStation 2004 Edition MDL application into MicroStation v8i. Element descriptor added to design file using mdlElmdscr_add() isn't displayed. I have to use manually Update View to display it.
I know that after MicroStation XM (with DirectX), mdlElmdscr_add() displays element as 'self healing' and element is displayed after added to design file automatically. I even tried to add mdlElmdscr_display() or mdlElmdscr_displayFromFile() but it doesn't display the element.
If I add element descriptor before applying new symbology, it is displayed properly. I checked the code, there isn't something wrong about updating element descriptor using mdlElmdscr_xxx functions. I also tried to use mdlElmdscr_validate() but it doesn't solve the problem too.
mdlElmdscr_validate (*cellDP, MASTERFILE);
fPos = mdlElmdscr_add (*cellDP);
mdlElmdscr_display (*cellDP,ACTIVEMODEL,NORMALDRAW);
// mdlElmdscr_displayFromFile(fPos,ACTIVEMODEL,NULL,NORMALDRAW);
I know if I update views in MDL the problem will be solved. But there must be another solution before thinking to update all elements.
What is missing here? Thanks.
Parents Reply Children
No Data