
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a command that is decorated with session flag - because it needs to have it. From within that command, I want to execute an AutoCAD command - specifically LAYOUT command. I have tried following ways:
ed.Command("-LAYOUT", "S", "REPORT" });
ed.Command(new object[] { "-LAYOUT", "S", "REPORT" });
I have also tried the CommandAsync as well. I have also tried calling them from inside of a transaction as well. I have also tried Document.SendStringToExecute().
But they all result in eInvalidInput exception.
I have several such commands to execute in synchronized order. How can I call AutoCAD commands? I am using AutoCAD 2017, C#, .NET 4.5.2.
I have googled and found many thread but none has helped me specifically with this problem. Any help is much appreciated.
Solved! Go to Solution.