astah* API User Guide


[Easy Merge]

Easy Merge function of astah* API is supported in astah* UML and professional.

Easy Merge

  1. Open a project file
  2. Easy Merge
  3. Save as a project file

import com.change_vision.jude.api.inf.AstahAPI;
import com.change_vision.jude.api.inf.project.ProjectAccessor;

public class Test {
  public static void main(String[] args) {
    try {
        ProjectAccessor prjAccessor = AstahAPI.getAstahAPI().getProjectAccessor();
        
        prjAccessor.open("C:\\API\\pro305.asta");
        prjAccessor.easyMerge("C:\\API\\pro305_ref.asta", false);
        
        prjAccessor.saveAs("C:\\API\\pro305_2.asta"); 
        
        prjAccessor.close();
        
    } catch (Exception e) {
        e.printStackTrace();
    }
  }
}

Home