ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

acutBuildList (always returns a null pointer)!

3 REPLIES 3
Reply
Message 1 of 4
tianjie_328
618 Views, 3 Replies

acutBuildList (always returns a null pointer)!

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?

3 REPLIES 3
Message 2 of 4
artc2
in reply to: tianjie_328

I'm not sure if this will make a difference, but RTPOINT is for 2d points.  For 3d points you should use RT3DPOINT.

Message 3 of 4
tianjie_328
in reply to: tianjie_328

thank you! i find the solution ,the entities choosed must be seen in the "windows" when using the "acutBuildList".

Message 4 of 4
artc2
in reply to: tianjie_328

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost