Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

JLink - More specifig model check results

  • Thread starter Thread starter aleksy
  • Start date Start date
A

aleksy

Guest
Dear all,

I was wandering whether it is possible to get a bit more info about model when running model check from JLink app. I only know the way to get number of errors and warnings, but no details about the problems. Here is how I implemented getting the number of errors:

Code:
ModelCheckInstructions checkInstr = pfcModelCheck.ModelCheckInstructions_Create();<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">checkInstr.SetMode(ModelCheckMode.MODELCHECK_NO_GRAPHICS);<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">checkInstr.SetShowInBrowser(false);<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">checkInstr.SetConfigDir(null);<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">checkInstr.SetOutputDir(null);<br style="font-family: Verdana,Arial,Helvetica,sans-serif;"><br style="font-family: Verdana,Arial,Helvetica,sans-serif;">ModelCheckResults modelCheckResults = session.ExecuteModelCheck(model, checkInstr);<br style="font-family: Verdana,Arial,Helvetica,sans-serif;"><br style="font-family: Verdana,Arial,Helvetica,sans-serif;">int numberOfErrors = modelCheckResults.GetNumberOfErrors();<br style="font-family: Verdana,Arial,Helvetica,sans-serif;">int numberOfWarnings = modelCheckResults.GetNumberOfWarnings();

Thanks,
Aleksy





Edited by: aleksy
 

Part and Inventory Search

Sponsor

Back
Top