Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }