SlipShadow Posted December 13, 2009 Posted December 13, 2009 Does anyone know if autocad has a command for a hard or carraige return (or enter) on the command line? I am running a few voice commands (MS WSR Macros) and it works great except I need to make AutoCAD after some commands. For instance: _-view _swiso Quote
Lee Mac Posted December 13, 2009 Posted December 13, 2009 In a macro, a semi-colon (or space) represents the user hitting enter. Quote
Steve Doman Posted December 13, 2009 Posted December 13, 2009 To add to what Lee said, in AutoLISP you use: (command "") Quote
SlipShadow Posted December 14, 2009 Author Posted December 14, 2009 Thanks for the timely responses! Unfortunately, these only work if you are using AutoLisp or whatever, not entering it into the command line. I am trying to avoid building a bunch of new ACAD macros/autlisp routines just so I can then turn around and build a bunch of WSR Macros to activate them. WSR Macros enters the text, and if you hit return and type a new line in the WSR Macro, it will return and enter that new text in AutoCAD's command line, however, after it enters the text it does not . It will also not recognize a space, so I can't simply add a blank line at the end and get it to return. Quote
wizman Posted December 14, 2009 Posted December 14, 2009 Does it understand carriage return chr(13) or line feed chr(10)? Quote
daha Posted May 27, 2015 Posted May 27, 2015 Does it understand carriage return chr(13) or line feed chr(10)? Try using ^M. You can use ^M (within a MTEXT string) in your Macro and it will give you a line return. (don't use the semi-colon bec it will end the current command) http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ff-7c11d46c11cb8605735-610d.htm,topicNumber=d0e373834 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.