Skip to content

How to pass arrays of Autodesk types? #9

Answered by rchive1
rchive1 asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out.
The translation of C#:
SurfaceAnalysisElevationData[] newData = new SurfaceAnalysisElevationData[steps];
to Python seems to be:
newData = System.Array[SurfaceAnalysisElevationData](steps)

I've never used Python with .NET or IronPython before, so I couldn't figure out what "Array" was referring to or how to create one.

Thanks for your help.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rchive1
Comment options

@rchive1
Comment options

Answer selected by rchive1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants