cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to execute ModelCheck?

ddhini-2
2-Explorer

How to execute ModelCheck?

public void modelchk ( ) throws Exception {

  try{

    Model model=session.GetCurrentModel();

    ModelCheckInstructions checkInstr = pfcModelCheck.ModelCheckInstructions_Create();

  checkInstr.SetMode(ModelCheckMode.MODELCHECK_NO_GRAPHICS);

  checkInstr.SetShowInBrowser(true);

  checkInstr.SetConfigDir(null);

  ModelCheckResults modelCheckResults = session.ExecuteModelCheck(model, checkInstr);

  displaymessage("ModelCheckExecuted");

  JFrame f=new JFrame();

  JOptionPane.showMessageDialog(f,"ModelCheckExecuted");

  }

  catch(Exception e){

  displaymessage("No Model Were Found...");

  }

Where can i append my modelCheckResults can anyone explain?Thanks in Advance.

0 REPLIES 0
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags