void getMaterialNameListRSA(RobotApplication appRSA) { RobotLabelServer labelsRSA = appRSA.Project.Structure.Labels; //RobotLabel labelRSA; RobotNamesArray namArrRSA = labelsRSA.GetAvailableNames(IRobotLabelType.I_LT_MATERIAL); string[] tmp = new string[namArrRSA.Count]; for (int i = 0; i < namArrRSA.Count; i++) { tmp[i] = namArrRSA.Get(i + 1); } MaterialsRSA = tmp; }
void getBarSectionNamesRSA(RobotApplication appRSA) { RobotLabelServer labelsRSA = appRSA.Project.Structure.Labels; //RobotLabel labelRSA; RobotNamesArray namArrRSA = labelsRSA.GetAvailableNames(IRobotLabelType.I_LT_BAR_SECTION); string[] tmp = new string[namArrRSA.Count]; for (int i = 0; i < namArrRSA.Count; i++) { tmp[i] = namArrRSA.Get(i + 1); } NamesSectBar = tmp; }