Filter
void
Amrk()
{
struct resbuf eb1, eb2;
TCHAR sbuf1[10], sbuf2[10]; // Buffers to hold strings
ads_name ssname1, ssname2;
eb1.restype = 0; // Entity name
_tcscpy(sbuf1, _T("CIRCLE"));
eb1.resval.rstring
= sbuf1;
eb1.rbnext
= NULL; // No other properties
// Retrieve all circles.
acedSSGet(_T("X"), NULL, NULL, &eb1, ssname1);
eb2.restype
= 8; // Layer name
_tcscpy(sbuf2, _T("FLOOR3"));
eb2.resval.rstring
= sbuf2;
eb2.rbnext
= NULL; // No other properties
// Retrieve all entities on
layer FLOOR3.
acedSSGet(_T("X"), NULL, NULL, &eb2, ssname2);
Chang_c(ssname1);
}