resolve_command_block#
- ansys.mapdl.core.cli.exec.resolve_command_block(input_arg=None, commands=(), script_file=None)#
Build the APDL command block from the available command sources.
- Parameters:
- Returns:
strThe APDL commands to send to MAPDL.
- Raises:
ValueErrorWhen no source or more than one source is given, or when the resulting block is empty.
- Return type:
Examples
>>> from ansys.mapdl.core.cli.exec import resolve_command_block >>> resolve_command_block(commands=["/prep7", "SAVE"]) '/prep7\nSAVE'