I was looking for the same thing and found the original info posted by David...Here it is:
From: Richard D. Howard [Autodesk GIS]
Date: Dec/12/01 - 00:45 (GMT)
"JK" wrote in message
news:CA837B96175212C7033283FFA6D8A6BD@in.WebX.maYIadrTaRb...
> I have a road network with names.
> When I define the query I see an option for text rotation which I set to 0
> but I would like to align the names to the roads. Do I have a tool like
that
> in Map?
Hello,
Try the following expression in the Rotation
field of the Define Text Property Alteration
dialog:
(angtos (- (/ pi 2) (atan (/ (/ (if (> .y1 .y2) (- .x1 .x2) (- .x2 .x1))
.length) (sqrt (- 1 (expt (/ (- .x1 .x2) .length) 2)))))))
It is a rather big expression which is likely
to wrap in this message, so be sure to copy it
as one long line into the rotation field.
Limited testing, but it seems to work for
most linear entities (line, pline, arc).
Let us know how it goes-
rdh.
Ray Weiser