Use Python script to make names of levels

Hi, I use Level by “elevation and name” and if I have a list of numbers as levels and I wanna use Python script to make names as numbers like Level 1- Level 2

I’m not sure if I understood your question correctly but see if this helps:

1 Like
out = []
for i in range(len(IN[0])):
	out.append("Level "+str(i+1))

OUT = out

image

1 Like

it’s working well thanks so much, Also kindly if you know how I write DirectShape.ByMesh as a python script Please @AmolShah
image