高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】怎么获得实体的长度
怎么获得实体的长度
怎么获得实体的长度
是否有方法可以直接获取实体(line、arc、ployline等)的长度啊?
reply
// get length of a curve
double length(acdbcurve* pcurve)
{
double dist = 0.0;
acad::errorstatus es;
double endparam;
es = pcurve->getendparam( endparam );
es = pcurve->getdistatparam( endparam, dist );
assert(acad::eok == es);
return dist;
}
change your life style.
研究一下!
谢谢斑竹哦
研究过了,太好了!
|