Get a user binary storage by name as a Tree from the OriginObject
bool get_user_info( OriginObject & obj, LPCSTR lpcszName, TreeNode & trUserInfo )
true if successfully get the storage tree,
false if obj is invalid or the storage tree not found
EX1
// Active window should be a worksheet void get_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); Tree tr; bRet = get_user_info(wks, strInfoName, tr); out_tree(tr); }
set_user_info
origin.h