# 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 = ProjectAccessorFactory.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 have not models.

Home