RemapObjects

Remaps one or more objects from one plane, or coordinate system, to another.

Syntax

Rhino.RemapObjects (arrObjects, arrSrcPlane, arrDstPlane [, blnCopy])

Parameters

arrObject

Required. Array. The identifiers of the objects to remap.

arrSrcPlane

Required. Array. The source plane to transform from.

arrDstPlane

Required. Array. The destination plane to transform to.

blnCopy

Optional. Boolean. Copy the object. If omitted, the object will not be copied (False).

Returns

Array

An array of strings identifying the remapped objects if successful.

Null

If not successful, or on error.

Example

Dim arrObjects, arrSrcPlane, arrDstPlane

arrObjects = Rhino.GetObjects("Select objects to remap")

If IsArray(arrObjects) Then

  arrSrcPlane = Rhino.ViewCPlane("Top")

  arrDstPlane = Rhino.ViewCPlane("Right")

  Rhino.RemapObjects arrObjects, arrSrcPlane, arrDstPlane

End If

Also See

RemapObject