Scales a single object. This function can be used to perform uniform or non-uniform scale transformations. Scaling is based on the active construction plane.
Rhino.ScaleObject (strObject, arrOrigin, arrScale [, blnCopy])
Rhino.ScaleObject (strObject, arrPlane, arrScale [, blnCopy])
strObject |
Required. String. The identifier of the object to scale. |
arrOrigin |
Required. Array. The origin of the scale transformation. Scaling is based on a plane that is parallel with the active construction plane, and that runs through arrPoint. |
arrPlane |
Required. Array. The plane of the scale transformation. |
arrScale |
Required. Array. An array of three numbers that identify the X axis, Y axis, and Z axis scale factors to apply. |
blnCopy |
Optional. Boolean. Copy the object. If omitted, the object will not be copied (False). |
String |
The identifier of the scaled object if successful. |
Null |
If not successful, or on error. |
Dim strObject, arrOrigin
strObject = Rhino.GetObject("Select object to scale")
If Not IsNull(strObject) Then
arrOrigin = Rhino.GetPoint("Origin point")
If IsArray(arrOrigin) Then
Rhino.ScaleObject strObject, arrOrigin, array(1,2,3), True
End If
End If