コード例 #1
0
        public static int AddBar(RobotStructure structureRSA, RobotNode node1, RobotNode node2)
        {
            int            num1    = node1.Number;
            int            num2    = node2.Number;
            RobotBarServer barsRSA = structureRSA.Bars;
            int            freeNum = barsRSA.FreeNumber;

            barsRSA.Create(freeNum, num1, num2);
            return(freeNum);
        }
コード例 #2
0
        public static void AddBar(RobotStructure structureRSA, RobotNode node1, RobotNode node2, IRobotLabel labelSect)
        {
            int            num1    = node1.Number;
            int            num2    = node2.Number;
            RobotBarServer barsRSA = structureRSA.Bars;
            int            freeNum = barsRSA.FreeNumber;

            barsRSA.Create(freeNum, num1, num2);
            RobotSelection selection = structureRSA.Selections.Create(IRobotObjectType.I_OT_BAR);

            selection.FromText(freeNum.ToString());
            barsRSA.SetLabel(selection, IRobotLabelType.I_LT_BAR_SECTION, labelSect.Name);
        }