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 difference between version 16 and 22

Started by Garry K, December 03, 2012, 07:53:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Garry K

I have been running a macro successfully in version 16 and end up with a problem in version 22

RotateIt:
>Rotate
{
  <Axis 1
  <Pointxyz [x1, y1, z1]
  <ThroughHandle 0
  <Angle [_cab]
}
Return

Before I call the routine I make visible and editable a few layers and then call >SelectAll

In version 22 I get a prompt that says
Select Points: 1-Start position, 2-End rotation

This leads me to believe that the SlectAll isn't working the way I expect

Garry K

I've figured out what works in both versions - I need to add a second set of points that are the same as the first set.

This works.

RotateIt:
>Rotate
{
  <Axis 1
  <Pointxyz [x1, y1, z1]
  <Pointxyz [x1, y1, z1]
  <ThroughHandle 0
  <Angle [_cab]
}
Return

prl

Garry,  try it with the parameter I added.



RotateIt:
>Rotate
{
  <Axis 1
  <Pointxyz [x1, y1, z1]
  <ThroughHandle 0
  <Angle [_cab]
  <DragMode 0
}
Return

Garry K

Thanks - that works. It is also more explainable.