Author Topic: Selection Rotate  (Read 2862 times)

charly-bochum

  • Newbie
  • *
  • Posts: 34
Selection Rotate
« on: November 02, 2008, 02:24:20 PM »
Drawing in 2D with DC 17 the rotation of selected elements could be done very easy with the two appending simple macros. It worked with activated Selection Handle and independent of Drag Mode or Make A Copy.

In DC 18 Drag Mode must be set invalid, before it works, and that is tedious, if Dragmode is used normally. For avoiding that, You must know the status of Drag Mode or look for it before running the macros.

Is there a reason for that change in SDK or is it possible to go back to the old method?

Mark Laing

  • Sr. Member
  • ****
  • Posts: 311
Re: Selection Rotate
« Reply #1 on: November 03, 2008, 08:40:43 AM »
Here's my version of that macro.

>Rotate
{
  <Axis 2
  <Angle 90.0000
  <DragMode 1
  }

prl

  • Hero Member
  • *****
  • Posts: 3389
  • A Bézier Extrusion
Re: Selection Rotate
« Reply #2 on: November 03, 2008, 10:06:51 AM »
IMSI doesn't explain its "fix" list work flow even to beta testers. Myself and a few others have wondered out loud why IMSI "fixes" things that nobody wants or needs fixed.

charly-bochum

  • Newbie
  • *
  • Posts: 34
Re: Selection Rotate
« Reply #3 on: November 04, 2008, 03:24:26 PM »
Hello Mark

Thanks for Your macro. But I think there should be in <DragMode 0 instead of 1.
For safety's sake also <ThroughHandle 1 is to recommend. It looks then

>Rotate
 {
  <ThroughHandle 1
  <Axis 2
  <Angle [+90]
  <DragMode 0
}

But is there also a possibility to switch automatically to DragMode 1 at the end of the macro?

bdeck

  • Hero Member
  • *****
  • Posts: 827
Re: Selection Rotate
« Reply #4 on: November 04, 2008, 05:14:45 PM »
But is there also a possibility to switch automatically to DragMode 1 at the end of the macro?


Hi CB,

Rob S. showed me a very useful parameter for that purpose.

Just add the following to your macro:

>Rotate
{
  <DragMode 1
  <NULL
}


BD

charly-bochum

  • Newbie
  • *
  • Posts: 34
Re: Selection Rotate
« Reply #5 on: November 09, 2008, 02:19:44 PM »
Hallo BD and Rob S.

Your advice was very good.

I had not yet discovered the macro parameter <NULL in the Macro Reference, though it seems to be very usefull in general.

Many Thanks

CB