create_expression_file#

FieldsCalculator.create_expression_file(name: str, operations: list) str | bool#

Create a calculator expression file.

Parameters:
namestr

Name of the expression.

operationslist

List of operations in the calculator.

Returns:
str, bool

Path of the calculator expression file when successful, False when failed.

Examples

>>> from ansys.aedt.core.visualization.post.fields_calculator import FieldsCalculator
>>> obj = FieldsCalculator()
>>> obj.create_expression_file(name="MyObject", operations=["Box1"])