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

Not able to given Specify insertion point

1 REPLY 1
Reply
Message 1 of 2
RamanSBV
329 Views, 1 Reply

Not able to given Specify insertion point

Hi,

 

I have issue with sendstringtoexecute method for imageattach.

 

                Document doc = (Document)ActiveDocument;
                string filelocation = Regex.Replace(imagePath, "\\\\""\\\\");
                doc.SendStringToExecute("(Command \"imageattach\" \"" + filelocation + "\")" + Environment.NewLine, truefalsetrue);

 

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...

 

1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: RamanSBV

Hi there,

 

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.

 

Adam Nagy

Autodesk Developer Network



Adam Nagy
Autodesk Platform Services

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost