ImportPoints方法

描述
將點文件導入至目前機器人的目前專案。

語法
Sub ImportPoints (SourcePath As String, ProjectFileName As String [, RobotNumber As Integer])

參數

  • SourcePath
    字串運算式,代表導入目前專案的檔案以及其特定路徑。副檔名為.pts。
  • ProjectFileName
    字串運算式,代表只要有目前機器人或提供RobotNumber,即被導入到指定機器人專案中的特定檔案。副檔名為.pts。
  • RobotNumber
    要使用點文件之機器人的整數運算式。指定0可讓其變為共同點文件。

另請參閱
SavePoints方法

ImportPoints範例
VB 例:

With m_spel  
    .ImportPoints("c:\mypoints\model1.pts", "robot1.pts")  
End With  

C# 例:

m_spel.ImportPoints(@"c:\mypoints\model1.pts", "robot1.pts");