Command Line not displaying what the Text Window displays

Command Line not displaying what the Text Window displays

EricStiles
Advocate Advocate
1,588 Views
4 Replies
Message 1 of 5

Command Line not displaying what the Text Window displays

EricStiles
Advocate
Advocate

I've written a lisp program that I've used for years.  I know the prompts by heart and don't read them, so I'm not sure when this happened, but I just noticed that the prompt was missing characters.  I spent some time trying to track down why some of the characters were missing when I noticed that the characters show up in the Text Window vs the command prompt area.

 

In my lisp program, it will ask the user for some text with a default and some other options.  It should look something like this and does if you hit the F2 key and look at it in the Text Window:

 

[.]=none, [/]=settings, Text? <default text>:

 

But in the command line area it looks like this:

 

[.]=none, =settings, Text? <default text>:

 

Notice that the settings button is not being displayed.
I've also attached a screen shot.  This is strange, has anyone else seen this?

I'm using Autocad Civil 3D 2013

 

Eric

0 Likes
Accepted solutions (1)
1,589 Views
4 Replies
Replies (4)
Message 2 of 5

BeKirra
Advisor
Advisor

Is your AutoCAD up-to-date?

Is your AutoCAD font missing for the command line window or changed for some reason?

Please mark "Accept as Solution" and "Like" if my reply resolves the issue and it will help when others need helps.
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
0 Likes
Message 3 of 5

hmsilva
Mentor
Mentor
Accepted solution

Hi Eric,

with the introduction of dynamic input, we can just pick a command's option from the command line instead of typing a letter in the option.
The '[ ]' characters in a prompt, defines a dynamic prompt.

in your prompt you are using two sets of '[ ]', AutoCAD interprets the firt one as dynamic options, and disregard the second one, inside the function...

 

(progn
  (initget "Yes No")
  (setq x (getkword "Are you seeing the difference in the prompt? (Yes or No) "))
)

(progn
  (initget "Yes No")
  (setq x (getkword "Are you seeing the difference in the prompt? [Yes / No] "))
)

 

Second problem, the '/' character in a prompt option, It is interpreted as a 'separator' for a new option, and that I know, there is no way to AutoCAD interpret the '/' as a text character in a dynamic prompt...

One option to you, will be to change the '[ ]' characters to '( )'.

 

(progn
  (initget ". / Text?")
  (setq x (getkword "Are you seeing the difference in the prompt? (.)=none, (/)=settings, Text? <default text>:"))
)

 

Sorry, I have tried to find documentation about this subject to share...unsuccessfully...

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 4 of 5

EricStiles
Advocate
Advocate

Thank you, I was not aware of this Dynamic Input on the command line.  Now that I know about that, that could be usefull.  I can change my code from the brackets to the parenthesis and that should look ok. 

 

 

I can't seem to find any documentation either.  But I guess it's just what you said and is almost too simple.  Example type in: [YOU/ME] and YOU or ME become two options on your command line.  Very simple. 

  

 

Anyway, thanks

0 Likes
Message 5 of 5

hmsilva
Mentor
Mentor

You're welcome, Eric!
Glad I could help

Henrique

EESignature

0 Likes