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.

Move a group to a new location

Started by Garry K, November 22, 2012, 08:27:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Garry K

I'm building a macro which creates a bunch of parts, combines them into a group and then moves them into place. The problem I am having is that the move is using the handle that was created during the group command.

What am I doing wrong?

>Move
{
  <Type 0
  <Reference 1
  <Pointxyz 0, 0, 0
  <Pointrel [x1], [y1], [z1]
}

prl

One way to do it if you just want to move things (not changing orientation or scale) is:


'note something is already selected
.
.
.
>sethandle
{
<type 0
<pointxyz [0, 0, 0]
}

>DragMove
{
<pointxyz [x1, y1, z1]
}

.
.
.

or similarly

>sethandle
{
  <type 0
  <pointxyz [0,0,0]
}
   
>move
  {
    <Reference 0
    <Type 1
    <pointxyz [x1,y1,z1]
  }