Create a string from an object

I’m looking to take an object, or list of them, and convert them into a string. I am aware there is a node dedicated to this exact task, but I’m trying to do so using Revit API in the Python language.

Thanks!

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
inputList = IN[0]
output = []
for item in inputList:

    output.Add(str(item))

OUT = output
1 Like