I'm trying to automatize the workbench setup and simulation running.
I've prepared a .scscript that works properly in SpaceClaim. Now I want to run this script from a Workbench Journal file.
I've written these lines for the Workbench Journal file but it doesn't generate the geometry:
system1 = GetSystem(Name="Geom")
geometry1 = system1.GetContainer(ComponentName="Geometry")
DSscript = open("C:\Users\%my_path%\script_v2.scscript")
DSscriptcommand = DSscript.read()
geometry1.SendCommand(Command = DSscriptcommand)
Do you know how to do it?