.NET

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

Get input from command line

172 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,698
Registered: ‎10-12-2006
Message 2 of 4 (149 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 (150 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,698
Registered: ‎10-12-2006
Message 4 of 4 (137 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.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.