ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with ObjectARX 2015

1 REPLY 1
SOLVED
Reply
Message 1 of 2
nishant.bhayani
671 Views, 1 Reply

Problem with ObjectARX 2015

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

 

 

1 REPLY 1
Message 2 of 2
moogalm
in reply to: nishant.bhayani

Hi Nishanth,

 

Please manually activate AutoCAD from VLISP->Window-> Activate AutoCAD.

 

Thanks,

Madhu.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost