Offset entities in VC++

Discussion in 'AutoCAD' started by ppotera, Jul 24, 2003.

  1. ppotera

    ppotera Guest

    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:
    Thanks
     
    ppotera, Jul 24, 2003
    #1
  2. ppotera

    ppotera Guest

    According to the Offset procedure definition, the result is VARIANT as an array of entities.
     
    ppotera, Jul 24, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.