acedSSGet("X",NULL,NULL,&fit,sel);怎么用?
<P>struct resbuf fit;<BR> char name;<BR> ads_name sel;</P><P> fit.restype=0;<BR> strcpy(name,"BLOCK REFERENCE");<BR> fit.resval.rstring=name;<BR> fit.rbnext=NULL;<BR> acedSSGet("X",NULL,NULL,&fit,sel);</P>
<P>我想选择图内的所有块,设置过滤器时,不知道图块该用什么名字啊?我用的是BLOCK REFERENCE ,不过不行!</P> <PRE class=prog_in_0>struct resbuf eb; </PRE><PRE class=prog_in_0>char sbuf; </PRE><PRE class=prog_in_0>ads_name ssname; </PRE><PRE class=prog_in_0>eb.restype = 0;	// Entity name</PRE><PRE class=prog_in_0>strcpy(sbuf, "INSERT"); </PRE><PRE class=prog_in_0>eb.resval.rstring = sbuf; </PRE><PRE class=prog_in_0>eb.rbnext = NULL; // No other properties</PRE><PRE class=prog_in_0>// Retrieve all circles.</PRE><PRE class=prog_in_0><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>acedSSGet</FONT>("X", NULL, NULL, &eb, ssname); </PRE><PRE class=prog_in_0> </PRE>
页:
[1]