C# command line

Scripts and programs to automate Astroart
Post Reply
Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

C# command line

Post by Forum_2017 »

C# command line

I'm reviewing the demo and I really like Astroart 6.

Is it possible to do preprocessing from the command line?
I loaded the C# project and see the AASendCommand. Is there a complete list of commands and parameters that are available?
Some are listed in the CMD class but looks like some numbers are missing.
If I wrote a C# console app as a wrapper for AASendCommand would I be able to do preprocessing and other actions and filters?

Thanks!
--Rob

Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

Re: C# command line

Post by Forum_2017 »

Hello, the C# example shows "everything" that can be done (as commands). The real power is inside the script: for example, executing a script:

Image.Macro(1)

The filters saved in "Macro #1" are executed on the current image.
I admit that all this is quite indirect (an external program, which launches a script, which launches a macro). For this reason I suggest to test all as scripts, inside Astroart, without using the remote control SDK. Then after the script works well, it could be launched by the external program.

It's possible to launch a Preprocessing (again, inside a script), but this feature is under construction and not documented yet.
the command is:

Image.Preprocessing(s)

where "s" is a multil-line string with the following syntax:

#PREPROCESSING
Image=C:\Temp\m57-0001.fit
Image=C:\Temp\m57-0002.fit
Image=C:\Temp\m57-0003.fit
Image=C:\Temp\m57-0004.fit
Dark=C:\Temp\Dark01.fit
Dark=C:\Temp\Dark02.fit
Dark=C:\Temp\Dark03.fit
Flat=C:\Temp\Flat001.fit
Flat=C:\Temp\Flat002.fit
F.Dark=C:\Temp\FlatDark1.fit
F.Dark=C:\Temp\FlatDark2.fit
CombineMethod=1
AlignMethod=1

Post Reply