关于从TC中取不到File的问题

1、有时候,取不到,数组越界异常

TCComponentTcFile tcfile = dataSet.getTcFiles()[0];

2、是因为数据集里面没有内容,因为你在下面的操作中,没有把File放进去数据集,有可能是报错,反正是没有放进去成功

 dataSet.setFiles(new String[]{path}, new String[]{"DWG_Reference"});

 

原文地址:https://www.cnblogs.com/wwssgg/p/14682446.html