How to disable the output of Editor command execute in AutoCAD2022 by using C# .NET API

How to disable the output of Editor command execute in AutoCAD2022 by using C# .NET API

jelly_oy
Contributor Contributor
668 Views
2 Replies
Message 1 of 3

How to disable the output of Editor command execute in AutoCAD2022 by using C# .NET API

jelly_oy
Contributor
Contributor

When I use the following code,  the editor console will output execute message like the attachment picture show. 

If I  want to disable the output of editor console, how can I achieve?

editor.Command("_.ZOOM", "_E");

 

0 Likes
Accepted solutions (1)
669 Views
2 Replies
Replies (2)
Message 2 of 3

AVCPlugins
Advisor
Advisor
Accepted solution

public static void ZoomExtents()
{
object acadObject = CadApp.AcadApplication;
try
{
acadObject.GetType().InvokeMember("ZoomExtents", BindingFlags.InvokeMethod, null, acadObject, null);
}
catch (TargetInvocationException) { }
catch (OutOfMemoryException) { }
}


Plugins for AutoCAD
A>V>C>
AppStore | Facebook | Twitter | YouTube | Blog
0 Likes
Message 3 of 3

jelly_oy
Contributor
Contributor
Thank you very much, your code resolved my problem. Great!
0 Likes