GetNumInstances

Returns a true or false value that indicates whether the retrieval operation is successful.

When the operation is successful, the function puts the number of instances from the plane stress elements, that is associated with the primary element in the current expression call context, in the provided argument for:

  • The blades card (PSPROP1).
  • The holes and blades card (PSPROP2).

Calling convention:

bool GetNumInstances(int* val)
Note:

To access this method, you must use the GetTMGFunction method and include the AdditionalFunctions.h file located in the [installation_path]\tmg\include\maya\expeval_utils folder in the beginning of your source file.

Argument Data type Description
lenmax int* The number of instances.

For the example, see the GetAreaBC method.