write#

ansXpl.write(recordname, vecname)[source]#

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. This method must be used only on a non-compressed file.

Parameters:
recordnamestr

Name of the record you want to overwrite. Your position in the file must be set accordingly to this record location (same as if you want to read it).

vecnamestr

Name of the APDLMath vector you want to write in the MAPDL file. Its size must be consistent with the existing record.

Returns:
str

Response from MAPDL.

Examples

>>> xpl.write('MASS', vecname)