mdlElement_display

Hi,

I have problem when using mdlElement_display(). I have attached code snippet on this mail. I am trying to display line element in the dgn but  not displaying. The following code works in Microstation V7 very well but  not working in Microstation V8 XM Edition.I don't know problem where occurs will you please help me.

Code Snippet :

int draw_line(DPoint3d pnt[])

{

if(mdlLine_create(&line_elm,NULL,pnt)!= SUCCESS)

{ print_error(MS_CREATE_ERROR, "", TRUE); return FALSE; }

mdlElement_display(&line_elm, NORMALDRAW);

return TRUE;

 }

Thanks & Regards,

V.Sathish.