Model Persistence
Models can be loaded or saved by DG Kernel component programmatically at runtime.
To save use either Save
or SaveAs
methods of the component or IModel_DG.Save*() methods.
To load either change the ModelPath
property to a new location or use IModel_DG.Load*()..
The required format in the above operations is determined by the file extension
IModelEx
also provides methods for saving and loading the model to and from a memory
buffer bypassing the file system, which allows embedding DG Kernel models in
application documents and other tasks.
See Also: Models
|