Set the index of an object in a Collection
SetIndex(nIndex)
None
EX1
import PyOrigin #Create a new workbook with 3 sheets wkPage = PyOrigin.ActivePage() wksLayer3 = wkPage.Layers(2) wksLayer3.SetIndex(0) #Set the third sheet to be first nIndex = wksLayer3.GetIndex() assert(nIndex == 1), 'Index setting failed'
GetIndex