I am currently trying to execute a journaling command that creates a new analysis system in the project page. I am running the command from the mechanical scripting window:
ExtAPI.Application.ScriptByName('journaling').ExecuteCommand(command)
The command is set up to create a new analysis system next to the one I am currently viewing and looks like this:
command = """\n template1 = GetTemplate( TemplateName="Static Structural", Solver="ANSYS") system1 = GetSystem(Name="SYS") system2 = template1.CreateSystem( Position="Right", RelativeTo=system1) """
The problem I am having is that running this script from the mechanical scripting window seems to lock up and crash the software. If I run the same code from a wbjn file from the workbench project window it works fine, but executing it from Mechanical causes the crash.


Does anyone have any thoughts on how to fix this issue and run a journaling script that creates a new system from the mechanical scripting ExtAPI? I suspect it has something to do with threads and processes, but I don't know how to control what is happening when a journal is called from the mechanical scripting window.
Thank you!