How to obtain presentation information

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

Example
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.


  • Each model has one presentation in Object Diagram, Statemachine Diagram, Activity Diagram, Sequence Diagram and Communication Diagram.
  • Some presentations such as Noteanchor or Frame do not have have models.