给你个例子瞧瞧
(Number) l_length: ug_curve_askArcLength( ug_line:, {} );
(Child) ug_line: {
Class, ug_line;
Start_Point, Point(-67.2294314809851,-33.6018996148585,0);
End_Point, Point(-45.3670879440049,88.9754038432314,0);
};
错五
ug_curve_askArcLength() 要有两个输入参数,第二个不能缺省
你的情况用
(Number) my_length:dist(p1:, p2: ) ;
岂不更简单?
再不济,用KF写也把它写出来了
distance = sqrt((x2-x1)^2+ .....)
就这还比到UG里划线好恶 |