VGetRobotPlaceTargetPos 方法

描述
检索部件放置位置。

语法
Sub VGetRobotPlaceTargetPos (Sequence As String, Object As String, ByRef Point As SpelPoint)

参数

  • Sequence
    含有当前项目中视觉序列名称的字符串表达式。
  • Object
    含有序列 Sequence 中对象名称的字符串表达式。
  • Point
    含有放置位置的 SpelPoint 变量。

参阅
VGetRobotPlacePos 方法, VSetRobotPlaceTargetPos 方法

VGetRobotPlaceTargetPos 示例
VB 例:

Dim seq As String, blob As String  
Dim targetPoint As SpelPoint  
  
seq = "testSeq"  
blob = "blob01"  
m_spel.VGetRobotPlaceTargetPos(seq, blob, targetPoint)  
  
' 调整放置位置  
targetPoint.X = targetPoint.X + 10  
m_spel.VSetRobotPlaceTargetPos(seq, blob, targetPoint)  

C# 例:

Spe
lPoint targetPoint = new SpelPoint();  
  
seq = "testSeq";  
blob = "blob01";  
m_spel.VGetRobotPlaceTargetPos(seq, blob, out targetPoint);  
  
// 调整放置位置  
targetPoint.X = targetPoint.X + 10;  
m_spel.VSetRobotPlaceTargetPos(seq, blob, targetPoint);