Get the index of an object in a Collection
GetIndex()
the index of an object in a Collection
EX1
import PyOrigin #Assume a worksheet is active wks = PyOrigin.ActiveLayer() index=wks.GetIndex() print('Current sheet index = %i' % (index))
SetIndex