How I can work with results of Offset procedure as IAcadEntity in VC++ ? I have this source code, but I don't know, how to get IAcadEntity pointer from VARIANT. CComPtr<IAcadLWPolyline> pAcadLWPLine; CComPtr<IAcadEntity> pAcadEnt; VARIANT offsents; hr=pAcadEntity->QueryInterface(&pAcadLWPLine); hr=pAcadLWPLine->Offset(dprof,&offsents); Please, response ASAP. My e-mail: [email][/email] Thanks