From eb48c8bee01864b0f8e4d40cb269d70d6d00549d Mon Sep 17 00:00:00 2001 From: Hailin Wang Date: Fri, 22 Mar 2024 08:42:27 +0800 Subject: [PATCH] [bugfix] Add startup argument for abaqus.cae (#5575) Introduced #5492 (cherry picked from commit dc46d33cc01a75bc87d4f4af0e87497eb8268fb5) --- src/abqpy/cli.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/abqpy/cli.py b/src/abqpy/cli.py index 5f58448a14..d19c53856e 100644 --- a/src/abqpy/cli.py +++ b/src/abqpy/cli.py @@ -57,6 +57,7 @@ def cae( database: str | None = None, replay: str | None = None, recover: str | None = None, + startup: str | None = None, gui: bool = False, envstartup: bool = True, savedOptions: bool = True, @@ -80,6 +81,8 @@ def cae( The name of the replay file to open, by default None recover : str, optional The name of the journal file to open, by default None + startup : str, optional + The name of the startup file to open, by default None gui : bool, optional Run Abaqus/CAE command with the graphical user interface (GUI mode), by default False. envstartup : bool, optional @@ -100,9 +103,10 @@ def cae( """ # Parse options options = self._parse_options(script=script if gui else None, noGUI=script if not gui else None, - database=database, replay=replay, recover=recover, noenvstartup=not envstartup, - noSavedOptions=not savedOptions, noSavedGuiPrefs=not savedGuiPrefs, - noStartupDialog=not startupDialog, custom=custom, guiTester=guiTester, + database=database, replay=replay, recover=recover, startup=startup, + noenvstartup=not envstartup, noSavedOptions=not savedOptions, + noSavedGuiPrefs=not savedGuiPrefs, noStartupDialog=not startupDialog, + custom=custom, guiTester=guiTester, guiRecord=True if guiRecord is True else None, guiNoRecord=True if guiRecord is False else None) # fmt: skip args = ("--", *args) if args else ()