AddNamedExpression
Creates a named expression using the expression at the top of the stack.
| UI Access | Click Add in the Fields Calculator window. | ||||||||||||
| Parameters |
|
||||||||||||
| Return Value | None |
| Python Syntax | AddNamedExpression(<ExprName>, <FieldType>) |
| Python Example |
|
HFSS users can create an expression that uses the the Algebraic option. In this case, no Stack commands are necessary; you can define the expression within AddNamedExpression command:
oModule.AddNamedExpression("new2", "Fields",
[
"Algebraic:=" , "Mean( VolumeValue(Box1), Mag_B )"
])
The same command in Stack form would look like this:
oModule.AddNamedExpression("new2", "Fields",
[
"NameOfExpression:=" , ["Mag_B"],
"EnterVolume:=" , ["Box1"],
"Operation:=" , ["VolumeValue"],
"Operation:=" , ["Mean"]
])
For information, see Syntax for Algebraic Option.