Message 1 of 1
Problem when invoking commands via ActiveX with MATLAB

Not applicable
04-25-2018
04:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!