Move the 3D object on the X, Y or Z axis.

syntaxSyntax:
Dlx3DObject.Move(dX, dY, dZ)

Parameters

Parameter Description
dX Displacement in the X direction.
dY Displacement in the Y direction.
dZ Displacement in the Z direction.

Return Value

If an error occurs it returns false otherwise it returns true.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("silver");

  var pin = new DlxLead();
  pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
  pin.Rotate(0, 0, 90);
  ctx.Add(pin);

  pin = new DlxLead();
  pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
  pin.Rotate(0, 0, 90);
  pin.Move(-2.54, 0, 0);
  ctx.Add(pin);

  pin = new DlxLead();
  pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
  pin.Rotate(0, 0, 90);
  pin.Move(2.54, 0, 0);
  ctx.Add(pin);
}

See also