Jump to content

Display "[1/2]" in getXXX message as plain text, not clickable suggestions


vanowm

Recommended Posts

Hello.

It seems autocad treats content of square brackets as clickable suggestions and forward slash being removed because it's used as a separator. Is there a way display it as text?

(getint "[1/2]")

 

Link to comment
Share on other sites

4 hours ago, vanowm said:

Hello.

It seems autocad treats content of square brackets as clickable suggestions and forward slash being removed because it's used as a separator. Is there a way display it as text?

(getint "[1/2]")

 

Remove the brackets: (getint "1/2")

image.png.b20f9991aebccc5409d80799d194217d.png

Link to comment
Share on other sites

Square brackets were always representing "default" value if nothing was entered. So, I'd like to keep them.

For now, my work around this is to use unicode full-width brackets: [ ]

They look slightly different, but acceptable.

(getint "[1/2]")

 

Link to comment
Share on other sites

@vanowm FWIW -

Look at Autocad's general options on the command line for a typical command like COPY:

Specify base point or [Displacement/mOde] <Displacement>:
  • "[ ]" are always around the option keywords.
  • "< >" are always around the default option.
  • Capital letters are the mnemonic letter for the option keyword.

I always stick to that when making my command prompts.

  • Thanks 1
Link to comment
Share on other sites

Oh, you are correct. Not sure why it got stuck in my head square brackets where default value...mixed it with system console prompt I guess...

  • Like 1
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...