List<Integer> colWidth=null;
// if (sp!=null){
// fieldArray=(SpreadSheetFieldArray)sp.getFieldArray();
// colWidth=getColWidth(sp, fieldArray);
// }
Portfolio portfolio = frame.getGraphicManager().getProjectFactory().getPortfolio();
cache=NodeModelCacheFactory.getInstance().createDefaultCache(portfolio.getNodeModel(), portfolio,NodeModelCache.PROJECT_TYPE,"OfflineProjects",null);
((GanttSVGRenderer)renderer).init(frame.getProject(),cache,fieldArray,colWidth,frame.getScale(),false);
}else if (view instanceof PertView){
renderer=new NetworkSVGRenderer();
cache=NodeModelCacheFactory.getInstance().createFilteredCache((ReferenceNodeModelCache)frame.getReferenceCache(true),"Network",null);
((NetworkSVGRenderer)renderer).init(frame.getProject(),cache,NetworkSVGRenderer.PERT,frame.getScale());