.NET

.NET

Reply
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 1 of 2 (153 Views)

Not able to given Specify insertion point

153 Views, 1 Replies
03-20-2012 04:43 AM

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

 

ADN Support Specialist
adam.nagy
Posts: 622
Registered: ‎03-26-2007
Message 2 of 2 (126 Views)

Re: Not able to given Specify insertion point

03-20-2012 06:24 PM 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
Developer Technical Services
Autodesk Developer Network
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.