Interesting, thanks for the info! On Thu, 9 Jan 2025, 21:36 Darrel Conway, <darrel.con...@thinksysinc.com> wrote:
> After setting the log file, if you want to see the log file data in an > interactive Python session, you just call gmat.EchoLogFile(). That will > show the messages as they occur (similar to the output in the GMAT Message > Window when running the GUI). > On 1/9/25 06:15, Slojkowski, Steven E. (GSFC-595.0)[OMITRON] wrote: > > You might have a unnoticed syntax error in your script. Try adding the > following to your python code: > > > > gmat.UseLogFile('mylog.txt') > > > > This will create a log file in the GMAT output directory that may contain > helpful error messages. Let us know if that doesn’t solve it. > > > > *From:* Mike Vasovsky <kmm47...@gmail.com> <kmm47...@gmail.com> > *Sent:* Thursday, January 9, 2025 6:38 AM > *To:* gmat-users@lists.sourceforge.net > *Subject:* [EXTERNAL] [BULK] [Gmat-users] Opening GMAT scripts in Python > scripts > > > > *CAUTION:* This email originated from outside of NASA. Please take care > when clicking links or opening attachments. Use the "Report Message" > button to report suspicious messages to the NASA SOC. > > > > Hello everyone, > > > > > > I have been trying to open and run GMAT scripts within a Python script, > however whenever I run the commands *LoadScript*(...) and then *RunScript*(), > both return *False*. > > > > I deleted all the *Color values, OpenFrames* instances, *OrbitView* > objects, ground track and 2D-plots, but nothing improved the situation. > > > > What am I missing? I am still able to get the list of objects running the > command *ShowObjects*() even after *LoadScript*() returns *False*, but > still cannot run it. > > > > > > Best regards, > > Mike > > -- > Darrel J. Conway, Ph.D. Thinking Systems, Inc. > Senior Scientist and CEO 437 W Thurber Road, Suite 6 > <https://www.google.com/maps/search/437+W+Thurber+Road,+Suite+6?entry=gmail&source=g> > Phone: (623) 298-4530 Tucson, AZ 85705 > FAX: (520) 232-2533 https://www.thinksysinc.com > Cell: (520) 425-3626 darrel.con...@thinksysinc.com > >
_______________________________________________ GMAT-users mailing list GMAT-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-users