GetName
Get the short name of matrix object.
int GetName(string &strName)
Return 1 if successful, else 0.
EX1
//Get the short name of matrix object. void MatrixObject_GetName_ex1(int nIndex = 0) { MatrixLayer ml = Project.ActiveLayer(); if ( ml ) { MatrixObject mo = ml.MatrixObjects(nIndex); mo.SetName("abc"); // set name firstly string strName; int nn = mo.GetName(strName); out_str(strName); // output the name } }
OriginObject::SetName, MatrixObject::GetLongName, MatrixObject::GetUnits, MatrixObject::GetComments, MatrixObject::GetLabel, MatrixObject::GetExtendedLabel, MatrixObject::GetParameter, MatrixObject::GetParameters
origin.h