Add/Update a user binary storage using a Tree into the OriginObject
bool set_user_info( OriginObject & obj, string & strName, const TreeNode & trUserInfo, bool bUndo )
true if successfully set the storage,
false if obj is invalid or the fail to set storage
EX1
// Active window should be a worksheet void set_user_info_ex1() { Worksheet wks = Project.ActiveLayer(); string strInfoName = "WksInfo"; Tree trWksInfo; trWksInfo.AddTextNode("Worksheet has user info", "Notes"); trWksInfo.AddNumericNode(0.5, "Number"); bool bRet = set_user_info(wks, strInfoName, trWksInfo); }
get_user_info
origin.h