Message 1 of 13
Passing pressing "Enter" key for Commands

Not applicable
12-19-2017
08:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use MATLAB to interface with AutoCAD by using ActiveX COM control. When I use "SendCommand" method to send commands to AutoCAD, I put space at the string's end " " to make it can be interpreted as "Enter". It works for most commands, but it does not work for "-PARAMETER" command.
"-PARAMETER" needs to make a selection among [NEW EDIT RENAME DELETE] options and it requires to press "Enter" key then. Space at the end does not work anymore. Does anyone have idea to solve this problem?
It looks like someone using ".NET" control put "\n" at the end to pass "Enter" key, but it does not work here.