RhinoCommon API
ObjectTableTransform Method (Guid, Transform, Boolean) |
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

public Guid Transform( Guid objectId, Transform xform, bool deleteOriginal )
Public Function Transform ( objectId As Guid, xform As Transform, deleteOriginal As Boolean ) As Guid
Parameters
- objectId
- Type: SystemGuid
Id of rhino object to transform. This object will be deleted if deleteOriginal is true. - xform
- Type: Rhino.GeometryTransform
transformation to apply. - deleteOriginal
- Type: SystemBoolean
if true, the original object is deleted if false, the original object is not deleted.
Return Value
Type: GuidId of the new object that is the transformation of the existing_object. The new object has identical attributes.

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