Skip to main content

ModelCenter APIs 2026 R1

IDataHistoryToModel

Last update: 18.06.2026

interface IDataHistoryToModel

The Data History to Model connector is the piece that connects a Data History to a ModelCenter instance, for the purpose of restoring a run or re-running runs. It allows a user to override the default behaviors of the "Save to Model" and "Rerun Runs" capabilities of Data Explorer.

Functions

Name Summary
canRerunRuns abstract fun canRerunRuns(dataHistory: DataHistory, runIndexes: Array<Int>): Boolean
Determine if the specified runs can be re-run.
canSaveToModel abstract fun canSaveToModel(dataHistory: DataHistory, runIndex: Int): Boolean
Determine if a run could be saved to the model; returning FALSE means that option should be disabled in any menus.
closeDataHistory abstract fun closeDataHistory(dataHistory: DataHistory)
Notify that the user is attempting to close the given data history.
rerunRuns abstract fun rerunRuns(dataHistory: DataHistory, runIndexes: Array<Int>)
Notify that the user has requested to re-run a set of runs.
saveToModel abstract fun saveToModel(dataHistory: DataHistory, runIndex: Int)
Notify that a user has requested to save the indicated run to the model.

Connect with Ansys