Hi Alexei,
I am afraid that LabTalk has no method to solve this issue. Would you mind trying OC? I put an example below:
typedef bool (*PFN_get_go_LTScript_event)(GraphObject& go, string& strLTScript, int& nEvent);
void PutGraphObjectScriptToNotes(string strGrObjName, string strNotesName)
{
Layer lay = Project.ActiveLayer();
GraphObject go = lay.GraphObjects(strGrObjName);
Note note(strNotesName);
if (go && note)
{
PFN_get_go_LTScript_event pfn = Project.FindFunction("get_go_LTScript_event", "Originlab\\grobj_utils", true);
if (pfn)
{
string strScript;
if (pfn(go, strScript, NULL))
note.Text = strScript;
}
}
}
Regards,
Yuki
OriginLab