Ad

Monday, March 23, 2009

Round Down Expressions

Civil 3D provides math functions to Round numbers. The rounding is the just the normal rounding, but what if you wanted to round down? This is possible using an expression similar to the one below:

TRUNC({Parcel Area}/5)*5

The expression rounds a parcel area down to an interval of 5. To round down to 10 just divide the parcel area by 10 and then multiply the truncated result by 10. You may want to add If/Then statements to account for a situation where the parcel area is 4.999 when the parcel area label precision is 2. Your unrounded area label will show 5, but the round down value will show 0.

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad