astah* API User Guide


[How to obtain presentation information]

Use getPresentations() of IDiagram to get information of presentations in the diagram or cell (value cell or header cell) in CRUD.


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();
}

[How to get presentation information from model]

Use getPresentations() of IElement to get information of presentations.

Home