// var bodyList = workPart.Bodies.ToArray().ToList().ConvertAll(body => body.Tag).ToArray();//等价于 Part workPart = thesession.Parts.Work;//获取当前工作部件 var bodyList= workPart.Bodies.ToArray();//var 动态的变量类型 Tag[] bodies = new Tag[bodyList.Length];//tag 一种变量类型 里面放整数值 tag已经被封住过 for (int i = 0; i < bodyList.Length; i++)//数组初始化 { bodies[i] = bodyList[i].Tag; }
新闻热点
疑难解答