Jump to content

Hiding LISP code in CUI button


Strydaris

Recommended Posts

Hey everyone,

 

I am trying to figure out how to hide some LISP code from displaying in the command line when using a CUI custom command.

I am trying to add an area in my CUI for the user to set some variables that will be used on multiple LISPs.

I current made a custom command that has just this....

^C^C(setq F2B (getreal "Enter Front to Back slopes: "))

But when I click the buttom in the CUI I get this...

^C^C(setq F2B (getreal "Enter Front to Back slopes:")) Enter Front to Back slopes:

Is there anyway to hide the LISP code or would I have to take a different approach?

 

Thanks,

 

Link to comment
Share on other sites

So I found out the answer to my own question.

 

If you are looking to hide part of you macro in the command line, you needs to wrap it a "^P" (Ignore the quotes)

For example, here is a simple lisp code that I want to use to ask the user to set some variables that can / will be used in multiple lisps.

^C^C^P(setq F2B (getreal "Enter Rise for Front to Back slopes: "))

By adding the ^P it will no longer show the "CODE" part of it, but will show the prompt of "Enter Rise for Front to Back slopes: " on the command line.

Link to comment
Share on other sites

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...