i want to choose entities with "acedSSGet", for example
..................
pt1[X] =Max_x+0.002;
pt1[Y] =Max_y+0.002;
pt1[Z] =0.0;
pt2[X] = Max_x+0.002;
pt2[Y] = k*Max_x+p-0.002;
pt2[Z] =0.0;
pt3[X] = -0.002;
pt3[Y] = p-0.002;
pt3[Z] =0.0;
pt4[X] = (Max_y-p)/k-0.002;
pt4[Y] = Max_y+0.002;
pt4[Z] =0.0;
struct resbuf *pointlist; //
ads_name XZK; //
pointlist= acutBuildList(RTPOINT,pt1,RTPOINT,pt2,RTPOINT,pt3,RTPOINT,pt4,0);
acedSSGet("WP",pointlist,NULL,NULL,XZK);
long length;
acedSSLength(XZK,&length);
acutRelRb(pointlist);
acedSSFree(XZK);
........................
'pointlist' always returns a null pointer,"acutBuildList"has special limitation?
I'm not sure if this will make a difference, but RTPOINT is for 2d points. For 3d points you should use RT3DPOINT.
thank you! i find the solution ,the entities choosed must be seen in the "windows" when using the "acutBuildList".
That doesn't make any sense at all. acutBuildList doesn't know anything about the graphics window nor does it care.
But, points visible in the graphics window would indeed make a difference to the acedSSGet() call because that does only work with points visible in the current window.