Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Send Command

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
1531 Views, 3 Replies

Send Command

hi, 

 

I am trying to send the below commands to AutoCAD, it says invalid input. Ca anybody correct me.

 

// Old Method
//acNewDoc.SendStringToExecute("\x1B\x1B_.PASTECLIP ", true, false, true);

// Replacing with new
ed.Command("\x1B\x1B_.PASTECLIP ");

 And also

// Old Method
//doc.SendStringToExecute("_.COPYCLIP ", true, false, true);

// Replacing with new
ed.Command("_.COPYCLIP ");
                

 Is there any mistake. The send string to execute works fine. Now i get invlid input.

 

 

Tags (2)
3 REPLIES 3
Message 2 of 4
Ajilal.Vijayan
in reply to: Anonymous

I think you have to remove the space at the end of ed.Command("_.COPYCLIP");

ed.Command("_.COPYCLIP");

 

ed.Command("\x1B\x1B_.PASTECLIP ");

I didnt understand \x1B in here, are you using as escape characters ?

Message 3 of 4
Anonymous
in reply to: Ajilal.Vijayan

Hi Ajilal,

I ll try without the space at the end.
And Yes it is a escape sequence to terminate active command if any.
Message 4 of 4
_gile
in reply to: Anonymous

Hi,

 

You can also have a look to this thread.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report