高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】[求助]帮忙看个程序~
[求助]帮忙看个程序~
[求助]帮忙看个程序~
多谢进来的各位,请看看下面的程序运行后为什么不显示起点和终点坐标?
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("得到了起点和终点");
}
|