Description:

Attempts to read a Rhino plug-in's custom userdata from the File3dmObject object.

Syntax:
public bool TryReadUserData(
Guid userDataId,
bool readFromAttributes,
Func<File3dm, BinaryArchiveReader,
bool> dataReader
)
Parameters:
  • userDataId
  • Type: System.Guid
  • The id of the custom userdata object whose data you want to try to read
  • readFromAttributes
  • Type: bool
  • Set True to attempt to read custom userdata object from the object's Attributes . Set False to attempt to read custom userdata object from the object's Geometry .
  • dataReader
  • Type: Func<File3dm, BinaryArchiveReader, bool>
  • The function that will read the data. This function must be implemented identical to the the originating DocObjects.Custom.UserData -inherited class's Read method.
Returns:
Type: bool
The value returned by the data reading function if successful, False otherwise.

TryReadUserData method

Class:  Rhino.FileIO.File3dmObject

Nothing found