Author Topic: Reference parameter in Move command not working according to docs  (Read 271 times)

bdeck

  • Hero Member
  • *****
  • Posts: 881
To the best of my recollection, the <Referece parameter of the Move command has never worked.

The two attached macros should perform identically in the attached drawing.

The macro using a preset handle works.

But the one using "<Reference 1" makes a mess of the drawing, seemingly even changing entity order.

The parameter seems to work OK in the Duplicate command.

Code: [Select]
' mtr.d3m         move test with reference
' attempts to move a sequence of entities a fixed distance relative to a fixed reference point.
' Each move seems to create an offset from the previous point, creating greater errors with each move.

>deselect
{
}
ne=sys(9)
for i=1 to ne

GETATTR i, t ,sel
PUTATTR i, t ,1

>Move
{
<Reference 1
<Type 1
<Pointxyz 0, 0, 0
<Pointxyz  2, 2, 0
}

print  "hit a key,    esc to exit"
anykey k
>deselect
{
}

if k = 27 then end
next i

(Drawing uploaded in ascii format to save space)
« Last Edit: March 26, 2018, 05:47:28 PM by bdeck »