Scripting

Top  Previous  Next

ModelRight implements a COM/ActiveX interface for accessing and manipulating a model's objects and properties programmatically.  It uses this interface internally from VB Scripts to generate DDL.  You can write your own VB Scripts that use this within ModelRight to generate DDL, create reports, perform custom validation, do batch processing, etc...

The scripting engine resides in a DLL named SCF.DLL.  If you want to access your Model's information outside of ModelRight, you need to register this DLL (i.e. regsvr32 SCF.DLL).  You can then use VB Script, JavaScript or any other programming language that can communicate with a COM/ActiveX control to access your Model's information.  You could even write an HTML page that loads a model and generates the page based on its contents.  For a simple example, see the sample JavaScript program SampleJavaScript.htm in the Report Files folder.