VLoadModel Method
Description
Load a vision model from a disk file.
Syntax
Sub VLoadModel (Sequence As String, Object As String, Path As String)
Parameters
- Sequence
A character string indicating the sequence name in the current project. - Object
A character sting indicating the object name. The object must be a Correlation, Geometric, or Polar. - Path
The full path name of the file to load the model from, excluding the extension.
Remarks
An error will occur if the model data in the file is the wrong type. For example, if you try to load a polar model into a correlation, an error will occur. If you supply a file extension, it is ignored. There are two files associated with fileName.
For correlation and geometric models, the ModelOrgX and ModelOrgY values are restored along with the model window width and height.
For polar models, the Radius, Thickness, and AngleOffset are restored.
See Also
VSaveModel Method
VLoadModel Example
VB Example:
m_spel.VLoadModel("seq01", "corr01", "d:\models\part1")
C# Example:
m_spel.VLoadModel("seq01", "corr01", @"d:\models\part1");