AutoCAD Map 3D has the ability to connect to various feature data sources, and allows the user to display and theme the data as required. A nice feature is the ability to add labels to your data based on information stored in the source data.
I have had some questions since this feature was introduced, related to the decimal places displayed by the feature label.
For example, if you connect to a land contour data set using FDO and then theme that data for display in AutoCAD Map, adding a feature label to display the contour elevations, sometimes the elevation will be displayed to 6 decimal places! but the elevations stored with the data have no decimal places... (click image to enlarge)
If the feature property, in this case ELEVATION contains a real number, the label “ELEVATION” will display real numbers and will display to 6 decimal places.
Note: I have seen some discussion on this topic to indicate that this may vary, however in the tests I have run, the data has consistently displayed to 6 decimal places for real numbers.
You may have noticed that if you open the "Style Label" dialog and click on the drop down list next to "Property to display:" you can select "Expression..." from the list... (click image to enlarge)
When selected, the "Text Expression" Builder is displayed, and from there you can select the "Number Expression" Builder... (click images to enlarge)
Now, at this point don't get too excited... Unfortunately it seems that their aren't any additional functions to work on numbers.
So all the clever LISP stuff you can do with queries and annotation etc. cannot be done here!
Anyway, one thing we can do, is get rid of those decimal places from your real numbers, here's the workaround...
If we change the label expression to reference an integer, then integer values will be displayed, we can force this with a simple expression to add zero (0) to the real number.
In the "Text Expression" dialog select "Advanced" and type in (0+Elevation) as shown below... (click image to enlarge)
Click "OK" in the "Text Expression" dialog and click "OK" in the "Style Label" dialog, the contour labels are updated... (click image to enlarge)

Recent Comments