Opened 14 years ago
Last modified 14 years ago
#1495 closed defect (fixed)
OMEdit: Interactive simulations fail if buildModel gives warnings
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Adeel Asghar |
Description
You need to check the return-value of buildModel... getErrorString may contain warnings or notifications. Now any model that returns a warning is not able to be interactively simulated
bool OMCProxy::buildModel(QString modelName, QString simualtionParameters) { sendCommand("buildModel(" + modelName + "," + simualtionParameters + ")"); if (getErrorString().isEmpty()) return true; else return false; }
Note:
See TracTickets
for help on using tickets.