.NET

Reply
Member
jain.diptee
Posts: 4
Registered: ‎04-23-2013
Message 1 of 4 (168 Views)

Get input from command line

168 Views, 3 Replies
09-30-2013 12:02 PM

I am writing a API in .NET. I can send commands to the AutoCAd command line using the sendCommand feature but can i access the result returned too? I am not able to find the right class/function the redirect the command result back to my API

*Expert Elite*
dgorsman
Posts: 5,277
Registered: ‎10-12-2006
Message 2 of 4 (145 Views)

Re: Get input from command line

09-30-2013 03:14 PM in reply to: jain.diptee

Which commands are you sending, and what are you expecting to get back from them?

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Member
jain.diptee
Posts: 4
Registered: ‎04-23-2013
Message 3 of 4 (146 Views)

Re: Get input from command line

09-30-2013 03:18 PM in reply to: jain.diptee

I want to use the command gstestbenchmark or gsbcurrent and get the results returned by autocad into my API

*Expert Elite*
dgorsman
Posts: 5,277
Registered: ‎10-12-2006
Message 4 of 4 (133 Views)

Re: Get input from command line

09-30-2013 03:58 PM in reply to: jain.diptee

Where functions are designed to produce consumeable information they aren't called through the command line.  You could temporarily call up a log file and read it afterwards.  But I'd be cautious about real-world consumption of benchmarking stats.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.