VCreateObject Method

Description
Creates a vision object in the current project.

Syntax
Sub VCreateObject ( Sequence As String, ObjectName As String, ObjectType As SpelVisionObjectTypes )

Parameters

  • Sequence
    A string expression indicating the vision sequence name in the current project.
  • ObjectName
    A string expression indicating the name of the object to be created in the sequence.
  • ObjectType
    A number indicating the vision object type (constants listed below can also be used)
Object Type Constant Value
Correlation Correlation 1
Blob Blob 2
Edge Edge 3
Polar Polar 4
Line Line 5
Point Point 6
Frame Frame 7
ImageOp ImageOp 8
Ocr Ocr 9
CodeReader CodeReader 10
Geometric Geometric 11
Color Match ColorMatch 14
Line Finder LineFinder 15
Arc Finder ArcFinder 16
Defect Finder DefectFinder 17
Line Inspector LineInspector 18
Arc Inspector ArcInspector 19
Box Finder BoxFinder 20
Corner Finder CornerFinder 21
Contour Contour 22
Text Text 23
Decision Decision 26
Coordinates Coordinates 27

See Also
VCreateSequence Method, VDeleteObject Method, VDeleteSequence Method

VCreateObject Example
VB Example:

m_spel.VCreateObject("myseq", "myblob", SpelVisionObjectTypes.Blob)  

C# Example:

m_spel.VCreateObject("myseq", "myblob", SpelVisionObjectTypes.Blob);