yunzhong80 发表于 2006-4-26 15:58:00

printdxf()在那里

printdxf()在那里,应包含那个头文件?

HuaiYu 发表于 2006-4-30 12:47:00

<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>&nbsp;&nbsp;&nbsp; int rt; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; if (eb == NULL) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return RTNONE; </P>
<P>&nbsp;<BR>&nbsp;&nbsp;&nbsp; if ((eb-&gt;restype &gt;= 0) &amp;&amp; (eb-&gt;restype &lt;= 9)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RTSTR ; <BR>&nbsp;&nbsp;&nbsp; else if ((eb-&gt;restype &gt;= 10) &amp;&amp; (eb-&gt;restype &lt;= 19)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RT3DPOINT; <BR>&nbsp;&nbsp;&nbsp; else if ((eb-&gt;restype &gt;= 38) &amp;&amp; (eb-&gt;restype &lt;= 59)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RTREAL ; <BR>&nbsp;&nbsp;&nbsp; else if ((eb-&gt;restype &gt;= 60) &amp;&amp; (eb-&gt;restype &lt;= 79)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RTSHORT ; <BR>&nbsp;&nbsp;&nbsp; else if ((eb-&gt;restype &gt;= 210) &amp;&amp; (eb-&gt;restype &lt;= 239)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RT3DPOINT ; <BR>&nbsp;&nbsp;&nbsp; else if (eb-&gt;restype &lt; 0) <BR>// Entity name (or other sentinel)</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = eb-&gt;restype; <BR>&nbsp;&nbsp;&nbsp; else <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rt = RTNONE; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; switch (rt) { <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case RTSHORT: <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . %d)\n", eb-&gt;restype, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;resval.rint); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case RTREAL: <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . %0.3f)\n", eb-&gt;restype, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;resval.rreal); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case RTSTR: <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . \"%s\")\n", eb-&gt;restype, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;resval.rstring); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case RT3DPOINT: </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . %0.3f %0.3f %0.3f)\n", <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;restype, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;resval.rpoint, eb-&gt;resval.rpoint, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;resval.rpoint); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case RTNONE: <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . Unknown type)\n", eb-&gt;restype); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; case -1: <BR>&nbsp;&nbsp;&nbsp; case -2:&nbsp; <BR>// First block entity<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acutPrintf("(%d . &lt;Entity name: %8lx&gt;)\n", <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eb-&gt;restype, eb-&gt;resval.rlname); <BR>&nbsp;&nbsp;&nbsp; } <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; return eb-&gt;restype; </P>
<P>} </P>
页: [1]
查看完整版本: printdxf()在那里