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.
- Select Labels >> Edit Label Styles
- On the Line Tab of the Edit Label Styles dialog box set “direction above distance below” as the current style
- Now type in “Feet and Meters” as the new Name for our new style
- Remember the name is up to you. It can be anything.
- 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.
- In the Data box select Length and then pick the Text Below button
- 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.
- 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 |
- After the * type the conversion factor. .3048
- Outside of the brackets type the desired suffix. M
- 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.
- Set the formula units to 2.
- Finally pick the Save button to save your new label style.
- Close the Edit Label Styles dialog box
- Select Labels Þ Settings and set your new label style current.
- 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!