Problem when invoking commands via ActiveX with MATLAB

Problem when invoking commands via ActiveX with MATLAB

Anonymous
Not applicable
684 Views
0 Replies
Message 1 of 1

Problem when invoking commands via ActiveX with MATLAB

Anonymous
Not applicable

Hi,

I've managed to access AutoCAD via ActiveX server with MATLAB. Therefore I am able to post and execute commands to the AutoCAD command line using MATLABs invoke function as shown below:

 

invoke(c_doc,'PostCommand','-ATTACH C:\users\me\myimage.jpg 0,0 490 0 ');

My problem is that this works as long as there is no string (in this case a path) input necessary but I haven´t found a solution for this when it comes to paths.

Has anyone a tip for how to tell MATLAB/AutoCAD that a string has ended? vbCr, &vbCr,... does not work.

 

Thanks in advance!

0 Likes
685 Views
0 Replies
Replies (0)