Skip to content

ObjectTable.Transform (RhinoObject, Transform, Boolean)

Public Class

Constructs a new object that is the transformation of the existing object and deletes the existing object if deleteOriginal is true.

Namespace: Rhino.DocObjects.Tables

Assembly: RhinoCommon (in RhinoCommon.dll)

**Since:**5.0

Syntax

public Guid Transform(
RhinoObject obj,
Transform xform,
bool deleteOriginal
)

Parameters

obj

Type: Rhino.DocObjects.RhinoObject
Rhino object to transform. This object will be deleted if deleteOriginal is true.

xform

Type: Rhino.Geometry.Transform
transformation to apply.

deleteOriginal

Type:System.Boolean
if true, the original object is deleted if false, the original object is not deleted.

Return Value

Type:Guid
Id of the new object that is the transformation of the existing_object. The new object has identical attributes.

Remarks

If the object is locked or on a locked layer, then it cannot be transformed.