示例#1
0
        public void linkGrids()
        {
            MyLog.Default.WriteLine("linking...");
            //var a = parentPort.cube;
            //if (a == null)
            //    MyLog.Default.WriteLine("parent is null");
            //else
            //    MyLog.Default.WriteLine("parent is not null");

            MyLog.Default.WriteLine("cable: linking " + headPort.cube.DisplayNameText + tailPort.cube.DisplayNameText);
            //grid.CreateGridGroupLink(GridLinkTypeEnum, id, grid, otherGrid)
            MyCubeGrid.CreateGridGroupLink(GridLinkTypeEnum.Logical, cableID,
                                           headPort.cube.CubeGrid as MyCubeGrid,
                                           tailPort.cube.CubeGrid as MyCubeGrid);
        }