diff --git a/doc/changelog.d/4179.miscellaneous.md b/doc/changelog.d/4179.miscellaneous.md new file mode 100644 index 00000000000..aabf96cd311 --- /dev/null +++ b/doc/changelog.d/4179.miscellaneous.md @@ -0,0 +1 @@ +Feat: Add wrinqr access to mapdl_inprocess class diff --git a/src/ansys/mapdl/core/mapdl_inprocess.py b/src/ansys/mapdl/core/mapdl_inprocess.py index 633473dd536..47545377671 100644 --- a/src/ansys/mapdl/core/mapdl_inprocess.py +++ b/src/ansys/mapdl/core/mapdl_inprocess.py @@ -28,6 +28,8 @@ class _Backend(Protocol): def run_command(self, command: str, verbose: bool, mute: bool) -> str: ... + def wrinqr(self, key: int) -> int: ... + def input_file( self, filename: str, @@ -55,12 +57,13 @@ def __init__(self, in_process_backend: _Backend): def _run(self, command: str, verbose: bool = False, mute: bool = False) -> str: if not command.strip(): raise ValueError("Empty commands not allowed") - if len(command) > 639: raise ValueError("Maximum command length mut be less than 640 characters") - return self._in_process_backend.run_command(command, verbose, mute).strip() + def wrinqr(self, key: int) -> int: + return self._in_process_backend.wrinqr(key) + def input( self, fname: str = "",