By Virupaksha Aithal
You can use “acedPutSym” API to set the AutoLISP symbol and “acedGetSym” API to retrieves the value of a AutoLISP symbol.
//set the MySymbol value
struct resbuf *rb = acutBuildList(RTSTR,
_T("Unicode String"), RTNONE);
int res = acedPutSym(_T("MySymbol"), rb);
acutRelRb(rb);
//get back the text
rb = NULL;
int rc = acedGetSym(_T("MySymbol"), &rb);
acutPrintf(L"MySymbol value is %sn", rb->resval.rstring);
acutRelRb(rb);

Leave a Reply to Virupaksha AithalCancel reply