News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Rotate Multiple Text

Started by skyline, October 03, 2015, 11:05:07 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

skyline

Hiya, does anyone know a quick way to rotate all text (room names and numbers in this case) labels through 180 degrees in a 2D layout drawing but leave them all in exactly the same position? Its laborious doing them one at a time when you have a couple of hundred or more and not easy to keep them centred.

Second, is it possible to make a mirror image of something which is lets say rotated through 30 degrees in the drawing? I need to mirror image the entity but keep the mirror image at the same angle. The mirror command does not appear to enable this via custom axis unless i am not using it correctly. I need mirror images which are also at the same 30 degree angle.

Third have upgraded to V25 and since doing so multiple line trim icon refuses to appear in the custom command bar. There is just a blank space where it was. Have tried new costom toolbox but still the same. Is this a bug?

Any advice much appreciated.

Cheers
Skyline

Rob S

#1
You could use the enclosed macro to speed this up a bit

For any selected entity, it will set a handle at its centre, and rotate it 180 degrees about that centre point.

To use it, paste the contents into a text file called "textrotate.d3m and save in your macros folder.

To use it, select any text item by any point, ie click near it, regardless of where the handle ends up, then for the first one, type spacebar ( I mean hit the spacebar, not type the word) , and in the resulting command line dialog, type "textrotate", and enter.

For each subsequent text item or text block, select the text, hit spacebar, and enter.  (the default command will be textrotate in the command dialog, once you have run it successfully the first time.



>SetHandle
{
  <Type 1
  }

>Rotate
{
  <Axis 2
  <Angle 180.0000
  <DragMode 0
  <ThroughHandle 1
  <MakeCopy 0
  <Increment 0.0000
  }



So click, space, enter for each item of text you want to rotate.
User since forever

samdavo


skyline

Rob, thanks fo this, the macro works great if I access it via the execute macro menu but I dont follow the bit about typing spacebar in the CD box. Which CD box are you referring to as I dont see one when I click next to the text I want to rotate?

Thanks,

Rob S

In designcad main window, typing "spacebar" should bring up a command bar dialog

It can be used to enter any commands as well as macro names

Once you see that, type in the macro name, and press enter, it should run.

For subsequent identical commands, you can execute them by typing space, enter.

More info under "command line" in the help
User since forever

Pearco

Rob:
Do you mean to type the word spacebar?
Just hit the space bar and the command line comes up.
The conversation looked like there may be some confusion.
Jim
User since ProDesign 1.5

Rob S

Thanks for clarifying, I can see now how my instructions could be confusing.

For future readers, I will edit my first post above.
User since forever

skyline

Thanks Pearco, I was trying to type spacebar as you suggest as I'm not familair with using the command line. Pressing spacebar on my keypoard brought up trim betwen two lines, I dont recall setting it to this but I must have done. So I reset the keyboard and now pressing the spacebar brings up the command box. Robs macro works a treat and will definitely save me some time.

Thanks both.

Ps were there any comments on my other two points in the original post from anyone?

Cheers

Pearco

skyline;

Maybe Rob can verify because I am not completely up to date on the current beta testing, but I think the trim multiple lines issue you spoke of has been addressed for the next release coming soon.
Jim
User since ProDesign 1.5

Rob S

Yes, this trim multiple icon issue seems to have been addressed in the forthcoming update, says he, hopefully....
User since forever

samdavo

Quote from: skyline on October 03, 2015, 11:05:07 AM
Second, is it possible to make a mirror image of something which is lets say rotated through 30 degrees in the drawing? I need to mirror image the entity but keep the mirror image at the same angle. The mirror command does not appear to enable this via custom axis unless i am not using it correctly. I need mirror images which are also at the same 30 degree angle.
Cheers
Skyline
Skyline - try using Custom Mirror. 
i.e. select something (Position of handle or handles not important),
go to custom mirror, 
set two points on the axis ( 30 degree off vertical in this case)
You should see the ghost image in the orientation you require.
cheers
sam

bdeck

Here's a link macro to speed up mirroring a bit (still one at a time).

http://forum.designcad.com/index.php?topic=1459.msg7507

Select the text, run the macro, set 2 points on the centerline of the text, hit return.

After running the macro, hit the delete key to delete the original selection (or modify the Type parameter in the mirror commands in the macro.

BD




DrollTroll

Until the patch comes out, you can add Trim Multiple Lines to a custom toolbox by making a macro that runs that command, and adding that macro to the custom toolbox intead of the command itself.
25 years with DesignCAD