String Array vs. Lists

Hi,
someone please explain me the difference between Array[str] and list of strings.
I tried to figure it out from Python resources, but I have no idea how to change this, as all examples look like lists.
Also this one causing Dynamo crash as well upon running.
I preferably would not share the code itself as it uses some C3D Beta stuff.
This is basically a property that requires strings as input.
I also tried the array module, but if I understand correctly that is for numeric values.
Thanks.

@kovacsv ,

can you share the code? :wink:

Sorry, I’d rather keep it on the python track.
image
I was just wondering if is it a Python.NET issue or maybe I do something wrong(more likely).
The .NET required input is string[ ].

Hello @kovacsv

maybe can you show only lines 45 to 50 of code (or less)

Try this.

from System import Array

list = IN[0]
array = Array[str](list)

You’d use array (or whatever you call the variable) in the method call that expects string[].

1 Like

Thanks, that worked.

1 Like