Author Topic: How can I copy all output of AutoCAD command string into the stream?  (Read 2363 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Hi all,

I need copy all output of AutoCAD command string  into the stream. How can I do it?

Thank you.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: How can I copy all output of AutoCAD command string into the stream?
« Reply #1 on: March 26, 2015, 06:32:52 PM »
Hi,

You may have a look at LOGFILEMODE and LOGFILENAME system variables.
Speaking English as a French Frog

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: How can I copy all output of AutoCAD command string into the stream?
« Reply #2 on: March 27, 2015, 04:04:08 AM »
Hi,

You may have a look at LOGFILEMODE and LOGFILENAME system variables.
Thank you. I know about it, but I think it is not the same what I want, because I need to receive changes at once as soon as they occur. I will try it, but I am not sure it will help me.
« Last Edit: March 27, 2015, 04:09:08 AM by Andrey Bushman »

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: How can I copy all output of AutoCAD command string into the stream?
« Reply #3 on: March 27, 2015, 06:35:50 AM »
Perhaps Jeff's solution for his Core Console runner may work for you? See http://www.theswamp.org/index.php?topic=41948.msg538676#msg538676 &   http://forums.autodesk.com/t5/net/accoreconsole-exe-in-2015-doesn-t-do-system-console-writeline/m-p/5559948#M43828 where he mentions using RedirectStandardOutput = true. Look at his ScriptProcessor.cs in the attached ZIP.