Hi,
I am having problem calling the ObjectARX functions from VLIDE editor. Everything works fine from AutoCAD command prompt. here is the ObjectARX code snippet.
Registring the function
--------------------------------------
int (*func)() = setVariable;
acedDefun(_T("setVariable"),1);
acedRegFunc(func,1);
SetVariable Function
-------------------------------------
int setVariable()
{
struct resbuf *rb = acutBuildList(5005,
_T("Unicode String"), 5000);
int resval = acedPutSym(_T("test"), rb);
acutRelRb(rb);
return 1;
}
If I call (setVariable) from AutoCAD command prompt its works fine, but while calling from VLIDE editor the AutoCAD becomes nonresponsive. I cannot do anything on AutoCAD but the VLIDE editor works fine. I cannot even close the VLIDE editor because the Exit menu option goes into disable mode.
the Same Arx woks fine in AutoCAD 2014 I am migrating ARX from 2014 to 2015 and I am stuck.
Please help me I have tried all possible options but not finding clue.
Thanks in advance.
Nishant
Solved! Go to Solution.
Solved by moogalm. Go to Solution.
Hi Nishanth,
Please manually activate AutoCAD from VLISP->Window-> Activate AutoCAD.
Thanks,
Madhu.