dream0020 发表于 2006-9-13 17:49:00

[求助]帮忙看个程序~

<P>多谢进来的各位,请看看下面的程序运行后为什么不显示起点和终点坐标?</P>
<P>static void AsdkLineInfo_Info(void)<BR>&nbsp;{<BR>&nbsp;&nbsp;// Add your code for command AsdkLineInfo._Info here<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AcGePoint3d pt1,pt2;</P>
<P>ads_name eLine;<BR>AcDbLine* pLine;<BR>AcDbObjectId eId;<BR>acdbGetObjectId(eId,eLine);<BR>acdbOpenAcDbEntity((AcDbEntity*&amp;)pLine,eId,AcDb::kForRead);<BR>pt1=pLine-&gt;startPoint();//得到起点<BR>pt2=pLine-&gt;endPoint();//得到终点<BR>pLine-&gt;close();<BR>acutPrintf("得到了起点和终点"); <BR>&nbsp;</P>
<P>&nbsp;}</P>
页: [1]
查看完整版本: [求助]帮忙看个程序~