Jump to content

Recommended Posts

Posted

I have seen some routines that when loaded echo a message to the user and others that do not. Can someone explain to me how to add code to a lisp routine to include a message that displays when the routine is loaded?

Posted

Add this to the end of you routine and rename the red colored text according

to your routine name.

 

(princ "\n[color="Red"]TEST[/color].lsp loaded...")
(princ "\nType [color="red"]TEST[/color] to start program")

 

Regards

 

Tharwat

Posted

OK, let me add this, the added lines must be outside of any and all other parentheses. I had already tried this, but had them insde one of the other functions, apparently.

 

Lisp is all very new to me.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...