OriginObject::SetName

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

Description

Set the short name of an object

Syntax

SetName(name)

Parameters

name
short name

Return

None

Examples

EX1

#Set the short name for the first sheet in active workbook. 
import PyOrigin
wkPage = PyOrigin.ActivePage()
wksLayer1 = wkPage.Layers(0)
wksLayer1.SetName('Mysheet')

See Also

GetName