Remqps a single object from one plane, or coordinate system, to another.
Rhino.RemapObject (strObject, arrSrcPlane, arrDstPlane [, blnCopy])
strObject |
Required.字符串。The identifier of the object to remap. |
arrSrcPlane |
Required.Array.The source plane to transform from. |
arrDstPlane |
Required.Array.The destination plane to transform to. |
blnCopy |
可选参数。Boolean.Copy the object.If omitted, the object will not be copied (False). |
String |
The identifier of the remapped object if successful. |
Null |
如果执行不成功或出错,返回空值。 |
Dim strObject, arrSrcPlane, arrDstPlane
strObject = Rhino.GetObject("Select object to remap")
If Not IsNull(strObject) Then
arrSrcPlane = Rhino.ViewCPlane("Top")
arrDstPlane = Rhino.ViewCPlane("Right")
Rhino.RemapObject strObject, arrSrcPlane, arrDstPlane
End If