|
ads_name ent;
ads_point pt2, pt3;
if (acedSSGet(NULL, NULL, NULL, NULL, ent) != RTNORM) {
return;
}
if (acedGetPoint(NULL, L"Pt:", pt2) != RTNORM) {
return;
}
if (acedGetPoint(pt2, L"Pt:", pt3) != RTNORM) {
return;
}
ads_name n1;
long len = 0;
acedSSLength(ent, &len);
for (int i = 0; i < len; i++)
{
ads_name a;
acedSSName(ent, i, a);
acedSSAdd(a, NULL, n1);
acedCommandS(RTSTR, _T("MIRROR"),
RTPICKS, n1,
RTSTR, _T(""),
RTPOINT, pt2,
RTPOINT, pt3,
RTSTR, _T("N"),
RTSTR, _T(""),
RTNONE);
acedSSFree(n1);
}
acedSSFree(ent); |
|