AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Text alignment,

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
273 Views, 2 Replies

Text alignment,

Has anyone got a way to set the text alignment to match the entities that is it attached to when you query in OD with a property alter query? I think David said sopmething about it back a few months ago and was going to get with the MAP team to find out. Thanks, Murph
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks I knew it was there somewhere and my search of the NG turned up nothing.
Murph

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report