GetSystemParam
Get the layer's internal info
DWORD GetSystemParam( int nParamType )
a generic value that depends on the request
EX1
//Output the plot type of the active graph layer. void Layer_GetSystemParam_Ex1() { GraphLayer gl = Project.ActiveLayer(); if(gl) { DWORD dw = gl.GetSystemParam(GLI_PCD_BITS); switch(dw & MASK_PCD_LAYER_BITS) { case PCD_LAYER_POLAR: out_str("polar plot"); break; case PCD_LAYER_TRI: out_str("ternary plot"); break; case PCD_LAYER_3D: out_str("3D scatter or wire or surface"); break; case PCD_LAYER_3D_XYY: out_str("3D bar, ribbon, wall etc"); break; default: out_str("some other layer type"); } } else out_str("not graph layer"); }
origin.h