8.1.11.7 GraphObject::GetObjectType

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 the graph object type

Syntax

GetObjectType()

Parameters

Return

The type ID
7 : GROBJTYPE_BEZIER
14 : GROBJTYPE_BITMAP
28 : GROBJTYPE_BUBBLE_LEGEND
13 : GROBJTYPE_COLORSCALE
25 : GROBJTYPE_CURSOR
23 : GROBJTYPE_DATASELECTOR
9 : GROBJTYPE_ELLIPSE
19 : GROBJTYPE_EMBEDDED
16 : GROBJTYPE_EMETAFILE
1 : GROBJTYPE_GROUP
3 : GROBJTYPE_LEGEND
4 : GROBJTYPE_LINE2
5 : GROBJTYPE_LINE4
18 : GROBJTYPE_LINK
24 : GROBJTYPE_MARKER
17 : GROBJTYPE_MEMORY
15 : GROBJTYPE_METAFILE
11 : GROBJTYPE_POLYGON
12 : GROBJTYPE_POLYGONBEZIER
6 : GROBJTYPE_POLYLINE
21 : GROBJTYPE_POLYPOLYGON
22 : GROBJTYPE_POLYPOLYLINE
20 : GROBJTYPE_RAKE
8 : GROBJTYPE_RECT
27 : GROBJTYPE_SCALER
26 : GROBJTYPE_TABLE
2 : GROBJTYPE_TEXT
10 : GROBJTYPE_TRIANGLE
0 : GROBJTYPE_UNKNOWN


Examples

EX1

import PyOrigin
Graph=PyOrigin.FindGraphLayer('Graph1')
#return 8
print(Graph.GraphObjects('Rect').GetObjectType())