Rotating separate mtext boxes as one

Rotating separate mtext boxes as one

kzD1219
Collaborator Collaborator
503 Views
5 Replies
Message 1 of 6

Rotating separate mtext boxes as one

kzD1219
Collaborator
Collaborator

Are there any tricks or lisp routines that can help me out?  My plan rotation changed and now I am stuck rotating mtext to plan view.  That is find when there is only one line of mtext, but generally we show mtext on top of one another because of size difference and layer difference of each line of mtext.  I have been rotating all 3 lines of text by eyeball and then adjusting to 90 degrees, but then the middle center justification is slightly off.

Currently looks like this:

kzD1219_0-1654275540454.png

I exaggerated this but the grip don't like up.

kzD1219_1-1654275540516.png

Need it lined up with the same spacing (blue line for lineup only)

kzD1219_2-1654275540515.png

Any help or suggestion is greatly appreciated.  The client change their mind on the orientation...grr!

 

0 Likes
Accepted solutions (1)
504 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

Select both.

Grab upper one's insertion-point grip, and hit Enter/space twice to go into Rotate mode.

Type or pick the Reference-direction option.

Osnap to the INSertion point of the upper one, then the lower one, to establish the reference direction.

-90°, or just have Ortho on and do the obvious thing, for the new direction.

Kent Cooper, AIA
0 Likes
Message 3 of 6

kzD1219
Collaborator
Collaborator

@Kent1Cooper wrote:

Select both.

Grab upper one's insertion-point grip, and hit Enter/space twice to go into Rotate mode.

Type or pick the Reference-direction option.

Osnap to the INSertion point of the upper one, then the lower one, to establish the reference direction.

-90°, or just have Ortho on and do the obvious thing, for the new direction.


Yes that works a bit faster than what I was doing.  Thanks.  I have a couple more plans coming my way so I will definitely use that trick.

0 Likes
Message 4 of 6

rkmcswain
Mentor
Mentor

If the textstyle assigned to these MTEXT objects were Annotative, and the property titled "Match Text Orientation to Layout" was checked on, then the text would self align and no action would be needed 😉

 

 

rkmcswain_0-1654276830869.png

 

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 5 of 6

Kent1Cooper
Consultant
Consultant

@rkmcswain wrote:

If the textstyle ... were Annotative, and the property titled "Match Text Orientation to Layout" was checked on, then the text would self align and no action would be needed


That takes care of the text rotation for each object, but not the relationship / vertical alignment of insertion points -- two viewports at different orientations showing the same objects:

Kent1Cooper_1-1654277825918.png

 

Kent Cooper, AIA
0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

My $0.05 select 2 mtext or more get insertion point of mtext then get mid point of these mtext use that point for rotation. If one is centre and another like left will not work properly.

 

 

 

(defun c:romt ( / ss mpt x y)
(prompt "\nSelect Mtext ")
(setq ss (ssget '((0 . "mtext"))))
(setq mpt '(0.0 0.0 0.0))
(setq x (sslength ss))
(setq y ( / 1.0 x ))
(repeat x
(setq pt (cdr (assoc 10 (entget (ssname ss (setq x (1- x)))))))
(setq mpt (mapcar '+ mpt pt))
)
(setq mpt (mapcar  '* mpt (list y y y)))
(command "rotate" ss "" mpt pause)
(princ)
)

 

 

0 Likes