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 <[email protected]>
Sent: Thursday, January 9, 2025 6:38 AM
To: [email protected]
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
_______________________________________________
GMAT-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmat-users