ansys.mapdl.core.xpl.ansXpl

class ansys.mapdl.core.xpl.ansXpl(mapdl)

ANSYS database explorer class.

Examples

>>> from ansys.mapdl.core import launch_mapdl
>>> mapdl = launch_mapdl()
>>> xpl = mapdl.xpl

Methods

ansXpl.close()

Close the MAPDL file after opening.

ansXpl.copy(newfile[, option])

Copy the current opened as a new file.

ansXpl.goto(path)

Go directly to a new location in the file.

ansXpl.help()

XPL help message

ansXpl.info(recname[, option])

Gives details on a specific record, or all records (using "*")

ansXpl.json()

Create a JSON representation of the tree or records.

ansXpl.list([nlev])

List the records at the current level.

ansXpl.open(filename[, option])

Open an MAPDL file to explore

ansXpl.print(recname)

Print values of a given records, or all records (using "*")

ansXpl.read(recordname)

Read a given record and fill a Python array.

ansXpl.save()

Save the current file, ignoring the marked records

ansXpl.step(where)

Go down in the tree of records

ansXpl.up([nlev])

Go up in the tree.

ansXpl.where()

Prints the current location in the MAPDL FIle

ansXpl.write(recordname, vecname)

Write a given record back to an MAPDL File Use the write function at your own risk, you may corrupt an existing file by changing the size of a record in the file.