Until we provide a solution to this in Origin 8, use the following for now,
void test()
{
GraphLayer gl = Project.ActiveLayer();
if(gl)
{
Tree tr;
bool bIsXYZ = true;
try {
tr = gl.ZAxis.Scale;
}
catch(int nErr)
{
bIsXYZ = false;
}
if(bIsXYZ)
out_str("Is XYZ layer");
else
out_str("No Z axis found");
}
}
CP
Edited by - cpyang on 08/19/2004 11:40:48 AM