property Mapdl.chain_commands#

Chain several mapdl commands.

Commands can be separated with "$" in MAPDL rather than with a line break, so you could send multiple commands to MAPDL with:"/PREP7$K,1,1,2,3")

This method is merely a convenience context manager to allow for easy chaining of PyMAPDL commands to speed up sending commands to MAPDL.

View the response from MAPDL with Mapdl.last_response.


Distributed Ansys cannot properly handle condensed data input and chained commands are not permitted in distributed ansys.


>>> with mapdl.chain_commands:
    mapdl.k(1, 1, 2, 3)