-
I'm trying to set a TIN surface's elevation colors with Surface.Analysis.SetElevationData() which requires an Array of type SurfaceAnalysisElevationData. It won't accept a python list or a single SurfaceAnalysisElevationData. How can I create an Array of this type, or of any Autodesk data type? |
Beta Was this translation helpful? Give feedback.
Answered by
rchive1
Jul 17, 2023
Replies: 1 comment 2 replies
-
Hi @rchive1 , you can try reference code C# code here : |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.