|
发表于 2015-4-9 13:25:00
|
显示全部楼层
4 寻找动态块约束参数支持的函数 下面是CAL命令支持的函数(摘抄至AutoCAD帮助),动态块应该能用(未完全测试)。 Use Standard Numeric Functions (CAL Command) CAL supports the standard numeric functions in the following table.Numeric functionsFunctionDescriptionsin(angle)Sine of the anglecos(angle)Cosine of the angletang(angle)Tangent of the angleasin(real)Arcsine of the number; the number must be between -1 and 1acos(real)Arccosine of the number; the number must be between -1 and 1atan(real)Arctangent of the numberln(real)Natural log of the numberlog(real)Base-10 log of the numberexp(real)Natural exponent of the numberexp10(real)Base-10 exponent of the numbersqr(real)Square of the numbersqrt(real)Square root of the number; the number must be nonnegativeabs(real)Absolute value of the numberround(real)Number rounded to the nearest integertrunc(real)Integer portion of the numberr2d(angle)Angles in radians converted to degrees; for example, r2d(pi) converts the pi radians to 180 degreesd2r(angle)Angles in degrees converted to radians; for example, d2r(180) converts 180 degrees to radians and returns the value of pipiThe constant pi Numeric operators OperatorOperation( )Groups expressions^Indicates exponentiation* , /Multiplies, divides+, -Adds, subtracts Vector operators OperatorOperation( )Groups expressions&Determines the vector product of vectors (as a vector) [a,b,c]&[x,y,z] = [ (b*z) - (c*y) , (c*x) - (a*z) , (a*y) - (b*x) ]*Determines the scalar product of vectors (as a real number)
|
|