CurrentModel属性
仅运行时
适用
视觉对象:ColorMatch、ImageOp
说明
设定/返回当前模型索引用以更改示教和模型名。
用法
VGet Sequence.Object.CurrentModel, var
VSet Sequence.Object.CurrentModel, value
- Sequence
- 序列名、或表示序列名的字符串变量
- Object
- 对象名、或表示对象名的字符串变量对象必须存在于指定的序列中。
- var
- 表示属性值的整数变量
- value
- 表示新属性值的整数或表达式
值
1至NumberOfModels结果值的整数。
详细说明
使用CurrentModel属性设定当前模型索引用以更改示教和模型名。
例如,以下代码设定模型2的颜色和名称:
VSet seq1.ColorMatch01.CurrentModel, 2
VSet seq1.ColorMatch01.ModelColor, &Hff0000
VSet seq1.ColorMatch01.ModelName, "Red"
参照
NumberOfModels属性、ColorMatch对象、ImageOp对象、ModelColor属性