_ Wmfin does not overlap,Text boundary!

_ Wmfin does not overlap,Text boundary!

1127204185
Advocate Advocate
312 Views
0 Replies
Message 1 of 1

_ Wmfin does not overlap,Text boundary!

1127204185
Advocate
Advocate

 

static AcDbObjectId wmfoutIn(ads_name& ssname)
    {
        acedCommandS(RTSTR, L"_wmfout", RTSTR, L"E:\\temp_1.wmf", RTENAME, ssname, RTSTR, L"", RTNONE);
        acedCommandS(RTSTR, L"_wmfin", RTSTR, L"E:\\temp_1.wmf", RTNONE);
        acdbEntLast(ssname);
        AcDbObjectId entId;
        acdbGetObjectId(entId, ssname);
        AcDbBlockReference* pBlk = NULL;
        AcGePoint3d ptBase;
        AcGeMatrix3d mat;
        if (acdbOpenObject(pBlk, entId, AcDb::kForWrite) == Acad::eOk)
        {
            ptBase = pBlk->position();
            mat.setToScaling(2.0, ptBase);
            pBlk->transformBy(mat);
            pBlk->close();

            return entId;
        }

        return AcDbObjectId::kNull;
    }

1.png

 

0 Likes
313 Views
0 Replies
Replies (0)