home page my account
site map
cadapult software
contact us
Items: 0
Subtotal: $0.00
      
Orders over $79.00 receive FREE shipping within the United States.

Civil 3D 2011 Books Now Available 




AutoCAD Map 3D 2011 Books Now Available 





Free Shipping to any U.S. address on orders over $79


 



Using Formulas In Your Land Desktop Labels by Rick Ellis

 

Did you know that you could add mathematical formulas to your Land Desktop labels?  This will allow you to calculate unit conversions or any other value that you may need with the data you use to label your lines, curves, spirals, and points.
 
The key to this is just properly setting up the Label Style.  To see the process we will look at a common application for using formulas in label styles, converting feet to meters.  In our example we have a drawing that is in feet.  But we need to label some lines in both feet and meters.
  1. Select Labels >> Edit Label Styles
  2. On the Line Tab of the Edit Label Styles dialog box set “direction above distance below” as the current style

  1. Now type in “Feet and Meters” as the new Name for our new style
    1. Remember the name is up to you.  It can be anything.
  2. Next place your cursor in the Text Below box at the end of the text, after the foot symbol, and use the Enter key to create a new line of text.
  3. In the Data box select Length and then pick the Text Below button

  1. This is where we add the formula.  Place your cursor in the Text Below box, on the second line, inside the brackets { } after the h.
  2. Now type the formula function symbol that you want to use.  For our exercise it will be the multiplication symbol * .  You can reference the table below for all of the available functions.

Formula function symbols 

Symbol
Function
+
addition
-
subtraction
*
multiplication
/
division
^
exponent
(
open parenthesis
)
closed parenthesis
ABS
absolute value of a number
ACOS
arccosine of a number
ASIN
arcsine of a number
ATAN
arctangent of a number
COS
cosine of a number
COSH
hyperbolic cosine of a number
EXP
e raised to the power of a number
LOG
logarithm of a number to a specified base
LOG10
base-10 logarithm of a number
POW10
number raised to a power of 10
ROUND
rounds to the closest integer
SIN
sine of a number
SINH
hyperbolic sine of a number
SQRT
square root of a number
SQR
square of a number
TAN
tangent of a number
TANH
hyperbolic tangent of a number
TRUNC
number truncated to an integer

  1. After the * type the conversion factor.  .3048
  2. Outside of the brackets type the desired suffix. M

  1. You may also want to check the units of your label style because the units of formulas are handled differently than standard linear lengths.  So pick the Linear button in the Units section of the dialog box.

  1. Set the formula units to 2.
  2. Finally pick the Save button to save your new label style.
  3. Close the Edit Label Styles dialog box
  4. Select Labels Þ Settings and set your new label style current.

  1. Then select Labels >> Add Dynamic Labels to Label a Line.

 
Using this process you can create labels that perform almost any conversion or mathematical function that you can imagine.  So take a little time to think about how you might be able to use this functionality to your advantage, and happy labeling!

 

Products related to this article:
Digging Into Autodesk Land Desktop 2006
Digging Into Autodesk Land Desktop 2006

Secure Server