CAD工具之家's Archivers

From boitboy on 2014-01-03 15:22:23

直接修改对象的DXF组码对应的值

ads_name e1, e2; struct resbuf *ed, *cb; if (acdbEntNext(NULL, e1) != RTNORM) { acutPrintf("\nNo entities found. Empty drawing."); return BAD; } acdbEntNext(e1, e2); if ((ed = acdbEntGet(e2)) != NULL) { for (cb = ed; cb != NULL; cb = cb->rbnext) if (cb->restype == 10) { // Start point DXF code cb->resval.rpoint[X] = 1.0;// Change coordinates. cb->resval.rpoint[Y] = 2.0; if (acdbEntMod(ed) != RTNORM) { // Move vertex. acutPrintf("\nBad vertex modification."); acutRelRb(ed); return BAD; } else { acdbEntUpd(e1); // Regen the polyline. acutRelRb(ed); return GOOD; // Indicate success. } } acutRelRb(ed); } return BAD; // Indicate failure.

查看完整版本: 直接修改对象的DXF组码对应的值

Tags: DXF, ObjectArx


©CAD工具之家
创办于:2013年5月24日