Monday, November 24, 2008

Arithmetic functions in AutoCAD fields.

In AutoCAD table cells and text fields (texts, block attributes) you can use not only the predefined properties, fields and functions but also the standard mathematic (arithmetic and goniometric) functions with dynamic values.
When defining the arithmetic expressions - see Fields > All > Expression - you can use the following functions:

* +, -, *, /, ^, () = basic arithmetic operations
* sin(angle) = Sinus of an angle
* cos(angle) = Cosinus of an angle
* tang(angle) = Tangens of an angle
* asin(real) = Arcus sinus
* acos(real) = Arcus cosinus
* atan(real) = Arcus tangens
* ln(real) = Natural logarithm
* log(real) = Decimal logarithm
* exp(real) = Natural power
* exp10(real) = Decimal power
* sqr(real) = Square
* sqrt(real) = Square root
* abs(real) = Absolute value
* round(real) = Rounded to the nearest integer
* trunc(real) = Truncated to integer
* r2d(angle) = Angle in radians converted to degrees
* d2r(angle) = Angle in degrees converted to radians
* pi = Pi constant (Ludolf's number)

Example: =atan(pi)

No comments:

Post a Comment

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP