DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Rotating all selected text text on a new axis

Started by adriank, September 30, 2019, 06:02:52 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Adrian 2.0

I have been frustrated by this in the past but it just came up again while I was rushing to reconfigure a drawing for a client yesterday.

In this situation, after drawing and fully labelling a floor plan I decided it would be better arranged on the page if I rotated the plan 90deg. That bit is easy, select all and rotate it - but all the text is then arranged vertically and the only way I see to rotate it back while keeping it (roughly) in the same place is to select each text individually and change the angle in the info box.
Either that or rotate the whole text on the page back which throws it way off, and then drag each string of text back into position individually. A lot of work either way...

I was wondering if any magic-macro-maker out there has something that would do the trick?
(my brain won't allow me to write macros)

Adrian

bdeck

Hi Adriank,

Is your problem with single line text, multiple line text, or dimension text?

bd

Dr PR

Adrian, I don't know if this will work with text rotation but you can try it.

Select one of the dimensions/text and rotate it. Then select the rest of the text and use the "Finger" tool in the info box to clik on the rotated text.

This works with dimensions and text to change some of the properties of the selected text to be the same as the text/dimensions pointed to with the finger. It's worth a try.

Phil
DesignCAD user since 1987

Adrian 2.0

Hi Phil,
Thanks for the suggestion, however the 'same as' finger doesn't rotate text - it'll change font, italics etc but not rotate it.
BD,
I'm working in single line text, I don't use the multiline text option as most of the text on an architectural drawing are one line anyway.
Dimension text is not a problem - that re-orients itself when it's rotated.


bdeck

#4
Hi adrianK,

Ive attached a simple macro that allows you to rotate each type 13 text entity (within a selection) about a corner point or center point of the entity. 2D only.

Macro also queries you whether to rotate text entites within groups.

Does not do multiline text or text blocks.

Select some entities, run the macro.

bd

Edit: Modified to use numeric keypad or alpha pad

Adrian 2.0

Hi BD,
Thanks for that -it's exactly what I need. However... I note that you mentioned 'numeric keypad only' which is a problem for me.
I have 2 keypads, one on my laptop and a bluetooth keypad I use most of the time - but neither have number pads.

The macro doesn't respond to my number key entry & I assume this is what you meant?
Is there any way to modify the macro so I can assign different keys to specify the rotation point?

Thanks,
Adrian

bdeck

Hi adriank,

I modified the download in the original post to allow using numeric keys from either numeric or alpha keyboards.

Discovered a bug in my original code which prevented use of alpha pad, and fixed it.

Also modified the code to make it more useful with other types of entities, for those who want to experiment.

bd

Adrian 2.0

Thanks so much for that BD,
It works fine now - except that it seems to rotate every entity in a selected group, not just the text.
That's not such a big problem for me as I just need to un-group the entities before trying to re-align the text - I would have had to do that anyway to fix the text one-by-one without this tool.

Thanks again for saving me!

Adrian

bdeck

Hello adriank

in preparing the file for upload the following passage

if type = 13  then   ' type of entity to rotate               
       if kk=5 then   

       
was inadvertently changed to this

if type = 13  then   ' type of entity to rotate           if kk=5 then   

so that the "else" related to the second line of the first passage became associated with the first line.

Found and fixed problem prior post. Let me know if you find other problems.

bd



Adrian 2.0