ProjectAccessor prjAccessor = AstahAPI.getAstahAPI().getProjectAccessor(); prjAccessor.open("C:a.asta", true, false, true); IModel project = prjAccessor.getProject(); IDiagram[] diagrams = project.getDiagrams(); for (int i = 0; i < diagrams.length; i++) { IPresentation[] iPresentations = diagrams[i].getPresentations(); } |