8.1.21.9 OriginObject::GetNumProp

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

Get object property via LabTalk property name

Syntax

GetNumProp(strVarName)

Parameters

strVarName
Object property name

Return

The value of the object property

Examples

EX1

import PyOrigin
#assumes the active graph has a line object
gl = PyOrigin.ActiveLayer()
line=gl.GraphObjects('Line')
print('color=',line.GetNumProp('color'))
line.SetNumProp('color', 2)

See Also

SetNumProp