I have issue with sendstringtoexecute method for imageattach.
Document doc = (Document)ActiveDocument; string filelocation = Regex.Replace(imagePath, "\\\\", "\\\\"); doc.SendStringToExecute("(Command \"imageattach\" \"" + filelocation + "\")" + Environment.NewLine, true, false, true);
it is opening image attach and after that i am not able to position it. by default it is taking 0,0 as x and y
Please help me..
Thanks in advance...
You could use the command line version of IMAGE command instead, i.e. -IMAGE:
(command "_-IMAGE" "_ATTACH" "C:\\test.bmp" "0,0" "1" "0")
In the above I set insertion point to [0,0] but you could change that to anything else.
I hope this helps.
Autodesk Developer Network
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!