How to close command line

How to close command line

Anonymous
Not applicable
821 Views
4 Replies
Message 1 of 5

How to close command line

Anonymous
Not applicable

Hi adn,

 

how to close command line from .NET (as COMMANDLINEHIDE) ?

 

Regards,

 

Mario

 

0 Likes
822 Views
4 Replies
Replies (4)
Message 2 of 5

BKSpurgeon
Collaborator
Collaborator

You can call that very command using .net.

 

 

here is a minimal code sample:

 

        [CommandMethod("HideCommandLine")]
        public static void HideCommandLine()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            doc.SendStringToExecute("COMMANDLINEHIDE\n", true, false, false );
        }

        [CommandMethod("ShowCommandLine")]
        public static void ShowCommandLine()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            doc.SendStringToExecute("COMMANDLINE\n", true, false, false);
        }

 

Hope that helps.

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi,

 

thank you for answer.

is it possibile to do HIde/show without use sendstringtoexecute?

 

Regards,

 

Mario

0 Likes
Message 4 of 5

BKSpurgeon
Collaborator
Collaborator

There might certainly be - unfortunately, I do not know that answer. Perhaps through some system settings? Someone more knowledgeable can help.

 

rgds

 

Ben

0 Likes
Message 5 of 5

deepak.a.s.nadig
Alumni
Alumni

You can try the following. However, please be very cautious to use this API as this is undocumented and unsupported. 

Autodesk.AutoCAD.Internal.Utils.CloseCommandLine();

 

0 Likes