PDA

View Full Version : ROTATE PARALLEL


engineering.28250
2005-06-13, 06:33 PM
Is there a simple lisp that would rotate text parallel to a polyline? If so what would it be?
Larry

sinc
2005-06-13, 06:38 PM
That question doesn't mean anything. Polylines can curve.

If you want to rotate text to align with THE TANGENT OF A POINT on a polyline, you can do THAT. There's no built-in routine to do it (I don't think), but you can write one. The vlax-curve-getFirstDeriv function will return the direction vector of the polyline at any given point. Simply convert the direction vector into an angle, and voila.

bbapties
2005-06-13, 07:03 PM
if you have express tools...

try the command "torient"

imblueflies
2005-06-13, 07:56 PM
Is there a simple lisp that would rotate text parallel to a polyline? If so what would it be?
Larry

Here's a button I use to create text parallel to a line or polyline, you pick a point on a line, enter text height then click a second point along the same line and then enter your text. You could probably modify it to do what you're looking for.

^C^C(setq a (getpoint "Insertion point: "));\text;J;BC;!a;\'cal;ang(a,nea);\\

Good luck,

Mike