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