StringArray#

Usage:

StringArray Class API Wrapper

class StringArray[source]#

Bases: object

Wrapper for StringArray class of Moldflow Synergy.

add_string(value)[source]#

Add a string value to the array.

Parameters:

value (str) – The value to add.

Return type:

None

from_list(values)[source]#

Convert a list of strings to a string array.

Parameters:

values (list[str]) – The list of strings to convert.

Returns:

The number of elements added to the array.

Return type:

int

property size: int#

Get the size of the array.

Returns:

The size of the array.

Return type:

int

to_list()[source]#

Convert the string array to a list of strings. :returns: The list of strings. :rtype: list[str]

val(index)[source]#

Get the value at the specified index.

Parameters:

index (int) – The index of the value to get.

Returns:

The value at the specified index.

Return type:

str