UserData.MoveUserDataFrom Method

UserDataMoveUserDataFrom Method

Moves the user data from objectWithUserData to a temporary data storage identifierd by the return Guid. When MoveUserDataFrom returns, the objectWithUserData will not have any user data.

Namespace:  Rhino.DocObjects.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Guid MoveUserDataFrom(
	CommonObject objectWithUserData
)
Public Shared Function MoveUserDataFrom ( 
	objectWithUserData As CommonObject
) As Guid

Parameters

objectWithUserData
Type: Rhino.RuntimeCommonObject
Object with user data attached.

Return Value

Type: Guid
Guid identifier for storage of UserData that is held in a temporary list by this class. This function should be used in conjunction with MoveUserDataTo to transfer the user data to a different object. Returns Guid.Empty if there was no user data to transfer.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also