Python - Construct ReferenceArray

Maybe you’ve already seen this thread, but I am trying to generate single-element slab-edges from a group of model curves. My issue is, I have no idea how to construct a ReferenceArray.

Has anyone done this? My python skills are very limited…

Hi @m.owens,

It is very simple :

references = IN[0]

#Constructor of referenceArray
yourReferenceArray = ReferenceArray()

for reference in references :
	yourReferenceArray.Append(reference)
2 Likes

In the same way you would instantiate any other class using Python:

referenceArray = ReferenceArray()

2 Likes

OMG…so easy…Thank you!!!