标题: 请问:求长度的函数是哪个? [打印本页] 作者: fanny0105 时间: 2010-2-11 19:48 标题: 请问:求长度的函数是哪个? 请问:UG OPEN FOR C求长度的函数是哪个? 我是求的是曲线的长度作者: 苏州人 时间: 2010-2-21 14:13
如果用.NET做的话应该是这个
measureLength = workpart.MeasureManager.NewLength(nullUnit, line_objects)
API 不是很清楚哪个。。没做过作者: zale_lzj 时间: 2010-2-23 21:26
/****************************************************************************
Computes the arc length of a curve between two input parameters.
Environment: Internal and External
See Also:
History:
****************************************************************************/
extern UFUNEXPORT int UF_CURVE_ask_arc_length (
tag_t curve_tag ,/* <I>
Tag of curve to query for arc length
*/
double start_param ,/* <I>
Start parameter of the curve from which the arc
length is to be calculated.
*/
double end_param ,/* <I>
End parameter of the curve to which the arc length
is to be calculated.
*/
UF_MODL_units_t unit_flag ,/* <I>
Any one of the following enumerated constants:
UF_MODL_UNITS_PART - same as parts units
UF_MODL_INCH - inches
UF_MODL_MMETER - millimeters
UF_MODL_CMETER - centimeters
UF_MODL_METER - meters
*/
double* arc_length /* <O>
arc length of the curve from start_param to end_param.
*/
);