MoveObjects

Moves one or more objects.

Syntax

rhinoscriptsyntax.MoveObjects (object_ids, translation)

rhinoscript.object.MoveObjects (object_ids, translation)

Parameters

object_ids

Required.  List.  A list of strings or Guids identifying the objects to move.

translation

Required.  Lsit of 3 numbers or Vector3d.  The 3-D translation vector.

Returns

List

List of Guids identifying the moved objects if successful.

Example

import rhinoscriptsyntax as rs

ids = rs.GetObjects("Select objects to move")

if ids:

    start = rs.GetPoint("Point to move from")

    if start:

        end = rs.GetPoint("Point to move to")

        if end:

            translation = end-start

            rs.MoveObjects( ids, translation )

Also See

MoveObject