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