Skip to main content
Part of Script Definition of a single macro.

Public Types

Public Member Functions

Static Public Member Functions

Detailed Description

Definition of a single macro.

Member Enumeration Documentation

eMeshType

the enum data type for defining teh data type of the argument in script context

Member Function Documentation

addArg()

adds a new argument to the end of the list Parameters

addRet()

adds a new return value to the end of the list Parameters

builderCompatible()

Returns true if this funtion can be used in the MacroBuilder

delArg()

erases the given argument from the list Parameters

delRet()

erases the given return value from the list Parameters

generateAutoTestMacro()

tries to generate a simplified test call of the defined function This may work, if all argument types are known. All values will be assigned to simplified defaults, like
  • strings: empty
  • numbers: 0
  • matrices: 1x1, zero Returns the genrated test code or empty string (if not able to generate one)

getArg()

Returns a reference to the specified argument Parameters

getMacro()

gets the macro’s code Exceptions

getRet()

Returns a reference to the specified return value Parameters

getRets()

Returns a reference to the vector of MacroArgs

isHidden()

Returns true if the macro is hidden

meshType()

Returns the mesh type(s) being compatible with this macro

needsMesh()

Returns true if this function needs a mesh

numArg()

Returns the number of defined arguments

numRet()

Returns the number of defined return values

operator<()

a comparison operator used for std::set usage Parameters Returns true if the ident of this function is “smaller” than the ident of the other function.
The “smaller” operator also checks if “numbers” are at the end of the ident, we try to resolve this according to “human ordering”, e.g. “chunk_9” < “chunk_10”

scriptChangeToFunction()

identifies a script code that changes the function Parameters Returns the script code to change this function to match the other on

setArg()

sets a new argument inside the vector Parameters

setHidden()

hide macro Obscure the macro string. (Notice: ANSYS does not guarantee a strong encryption.)
cannot be undone

setMeshType()

sets the mesh type(s) being compatible with this macro Parameters

setNeedsMesh()

Parameters

setRet()

sets a new return value inside the vector Parameters

validIdent()

static Returns true if the ident s can be used in Lua Parameters