printdxf()在那里
printdxf()在那里,应包含那个头文件? <P>not in the HEAD file,is the user defined</P><P>In the help of the ObjectARX </P>
<P>the content you search "printdxf" then it will be found</P>
<P>int printdxf(eb) <BR>struct resbuf *eb; <BR>{ <BR> int rt; <BR> <BR> if (eb == NULL) <BR> return RTNONE; </P>
<P> <BR> if ((eb->restype >= 0) && (eb->restype <= 9)) <BR> rt = RTSTR ; <BR> else if ((eb->restype >= 10) && (eb->restype <= 19)) <BR> rt = RT3DPOINT; <BR> else if ((eb->restype >= 38) && (eb->restype <= 59)) <BR> rt = RTREAL ; <BR> else if ((eb->restype >= 60) && (eb->restype <= 79)) <BR> rt = RTSHORT ; <BR> else if ((eb->restype >= 210) && (eb->restype <= 239)) <BR> rt = RT3DPOINT ; <BR> else if (eb->restype < 0) <BR>// Entity name (or other sentinel)</P>
<P> rt = eb->restype; <BR> else <BR> rt = RTNONE; <BR> <BR> switch (rt) { <BR> <BR> case RTSHORT: <BR> acutPrintf("(%d . %d)\n", eb->restype, <BR> eb->resval.rint); <BR> break; <BR> <BR> case RTREAL: <BR> acutPrintf("(%d . %0.3f)\n", eb->restype, <BR> eb->resval.rreal); <BR> break; <BR> <BR> case RTSTR: <BR> acutPrintf("(%d . \"%s\")\n", eb->restype, <BR> eb->resval.rstring); <BR> break; <BR> <BR> case RT3DPOINT: </P>
<P> acutPrintf("(%d . %0.3f %0.3f %0.3f)\n", <BR> eb->restype, <BR> eb->resval.rpoint, eb->resval.rpoint, <BR> eb->resval.rpoint); <BR> break; <BR> <BR> case RTNONE: <BR> acutPrintf("(%d . Unknown type)\n", eb->restype); <BR> break; <BR> <BR> case -1: <BR> case -2: <BR>// First block entity<BR> acutPrintf("(%d . <Entity name: %8lx>)\n", <BR> eb->restype, eb->resval.rlname); <BR> } <BR> <BR> return eb->restype; </P>
<P>} </P>
页:
[1]