Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

How to turn on and off command line for version 2004

Anonymous

How to turn on and off command line for version 2004

Anonymous
No aplicable

I'm using auto version 2004 how do I turn on and off my command line?

0 Me gusta
Responder
Soluciones aceptadas (1)
2.440 Vistas
21 Respuestas
Respuestas (21)

john.uhden
Mentor
Mentor

Thank goodness, because I am of no help.  In 2002, I see that you can dock and undock the command window, but I haven't found a sysvar for how it can be controlled programmatically.  The help isn't very informative.  I am so old fashioned that I like the docked command window.  It's always there, so I don't have to go looking for it.

Maybe I need to start a sysvar reactor to find out.  Think so?

John F. Uhden

0 Me gusta

john.uhden
Mentor
Mentor

@cadffm :

I browsed through the registry for 2002 and found...

(defun c:CLW ()
  (foreach Name '("CmdLine.Rows" "DockWindow.Position" "DockWindow.Style" "TextWindow.Position" "TextWindow.Show")
    (print (vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\FixedProfile\\Command Line Windows") Name))
  )
  (princ)
)
which returns (with my window undocked):
24
"10 741 1590 823"
2
"427 183 1173 670"
1

What bothers me is that I had to type in all those names.  My 2002 help says:

 

"(vl-registry-read reg-key [val-name])

Arguments

reg-key

A string specifying a Windows registry key.

val-name

A string containing the value of a registry entry.

If val-name is supplied and is not nil, the specified value will be read from the registry. If val-name is absent or nil, the function reads the specified key and all of its values."

Yet when I try (vl-registry-read (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\FixedProfile\\Command Line Windows"))

it returns nil.

You should try it in a newer release.

John F. Uhden

0 Me gusta