Russello Posted October 17, 2017 Share Posted October 17, 2017 Hi. I've been working on a "greeting" everytime I start up autocad. I wrote it in my acad.lsp file and using the function princ. (princ "\HELLO WORLD") It does appear in the command line after the start up but lines that says: "AutoCAD menu utilities loaded.*Cancel*" "Command: *Cancel*" "_RIBBON" also appear. Is there a way these lines (phrases) won't appear, and only the phrase I wrote on my acad.lsp will appear? Thanks Quote Link to comment Share on other sites More sharing options...
guran Posted October 17, 2017 Share Posted October 17, 2017 I think this is what you are looking for: (princ "\nHELLO WORLD") Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 Hi guran. Typo error, (princ "\nHELLO WORLD") was the code. My concern is after the phrase "hello world" appears, the phrases and lines: "AutoCAD menu utilities loaded.*Cancel*" "Command: *Cancel*" "_RIBBON" appear, is there a way to kept this phrases not appearing in the command line after the Hello world phrase? Thanks Quote Link to comment Share on other sites More sharing options...
guran Posted October 17, 2017 Share Posted October 17, 2017 My mistake, I thought "Hello World" came last and just needed a new line Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 hehehe its okay. I just want to delete the lines appearing after my Hello World. Because I saw some lisp routine doing it, but encrypted so I dont know how. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 17, 2017 Share Posted October 17, 2017 I doubt the lines you don't want to see are being deleted. I suspect however that they are being suppressed (i.e. - not displayed on screen). Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 17, 2017 Share Posted October 17, 2017 Other files are loaded after the acad.lsp I would suggest evaluating your welcome message by appending the appropriate expressions to the s::startup function. Quote Link to comment Share on other sites More sharing options...
PDuMont Posted October 17, 2017 Share Posted October 17, 2017 (alert "HELLO WORLD!") Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 Thanks sir Lee Mac, that helped a lot. That wont appear in the comman line but will prompt a window but that was also a clever and nice idea. Thanks Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted October 17, 2017 Share Posted October 17, 2017 If you want to get really fancy, download DOSLIB and use its tray notification. (dos_traywnd "Welcome!" "Welcome\nUserName!" 300 300 "www.mydomain.com") Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 18, 2017 Share Posted October 18, 2017 (edited) Another I have this set for various meassages using the user id as reminder to others. (setvar "modemacro" "Hello world is it not a nice day") Or for a bit of fun why not a sound greeting each time you open Autocad I think it was Grr that started me on using this one. (defun SpeakSapi ( s / sapi ) (if (eq (type s) 'STR) (progn (setq sapi (vlax-create-object "Sapi.SpVoice")) (vlax-put sapi 'SynchronousSpeakTimeout 1) (vlax-invoke-method sapi 'WaitUntilDone 0) (vlax-invoke sapi "Speak" s 0) (vlax-release-object sapi) ) ) ) (speaksapi "please remain seated during your Autocad session do not leave work area") I can just see all the messages for incorrect pick of objects (speaksapi "Arcs are like a banana ... please pick again") (speaksapi "Dimensions the thing with the arrows on each end ... pick again") (speaksapi "You picked incorrectly ... have another go") (speaksapi "Circles are what happens when you spin around when sitting on your chair ... pick again") Edited October 18, 2017 by BIGAL Quote Link to comment Share on other sites More sharing options...
Russello Posted October 18, 2017 Author Share Posted October 18, 2017 That was nice Master BIGAL. Those messages will help the user to stay awake while working. hahaha. Thank you Sir Quote Link to comment Share on other sites More sharing options...
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.