AutoCAD Command Window Size

Discussion in 'AutoCAD' started by Mike Andrews, Sep 10, 2004.

  1. Mike Andrews

    Mike Andrews Guest

    Hello All!

    I have been fighting for the last couple of days with the following issue:

    I am trying to resize the current drawing window and a VB form so that it
    fills the client area of the AutoCAD screen. I have been able to get the
    width of the windows to work, but the height is causing me a problem, as the
    Command Window and the status bar are included in the height I get back from
    the API.

    This would be fine, but I cannot for the life of me find where the size of
    the Command Window is stored. I know that in R15, it is in the Fixed Profile
    key in the Registry, but that changed in R16, and I need to support both. I
    have found API calls that return child windows of the AutoCAD window, but
    the Command Window doesn't show up unless it is not docked, in which case,
    my life is good anyway, so I don't need it.

    If anyone has any ideas, I would really appreciate it!

    Mike Andrews
     
    Mike Andrews, Sep 10, 2004
    #1
  2. Mike Andrews

    dblaha Guest

    This may or may not help you, but the number of visible lines in the command window is stored in the environment variable 'CmdVisLines'.

    (getenv "CmdVisLines")

    You might find more help in the Visual Basic Customization discussion group.

    Dave
     
    dblaha, Sep 10, 2004
    #2
  3. Mike Andrews

    Mike Andrews Guest

    Great suggestion. It was a different enough viewpoint, and helped me solve
    my problem in a way I hadn't considered.

    Thanks Dave!

    Mike

    command window is stored in the environment variable 'CmdVisLines'.
     
    Mike Andrews, Sep 13, 2004
    #3
  4. Mike Andrews

    dblaha Guest

    I'm glad I could help.


    Dave
     
    dblaha, Sep 13, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.