Your Products have been synced, click here to refresh
If (ObjDimCmd.Type = DIMENSION_TRUE_END_POSITION) Then
Maybe?
Try
If (ObjDimCmd.Type = DIMENSION_END_TRUE_POSITION) Then
'Open WinSPC and Collection Plan Set dc = CreateObject("WinSPC.DataCollectionAuto") dc.Visible = True dc.RunHeadless = False While dc.ReadyForLogin = "F" Wend dc.UserName = "1675 CMM" dc.Password = "1675" dc.CollectionPlanID = 8533 dc.TagIndex = 0 dc.TagValue = "P566290" dc.TagIndex = 1 dc.TagValue = StrC2 dc.TagIndex = 2 dc.TagValue = StrC1 dc.CurrentStep = 0 dc.Value = MyReading1 dc.CurrentStep = 1 dc.Value = MyReading2 dc.CurrentStep = 2 dc.Value = MyReading3 dc.CurrentStep = 3 dc.Value = MyReading4 dc.CurrentStep = 4 dc.Value = MyReading5 dc.CurrentStep = 5 dc.Value = MyReading6 dc.CurrentStep = 6 dc.Value = MyReading7 dc.CurrentStep = 7 dc.Value = MyReading8 dc.CurrentStep = 8 dc.Value = MyReading9 dc.CurrentStep = 9 dc.Value = MyReading10 dc.CurrentStep = 10 dc.Value = MyReading11 dc.CurrentStep = 11 dc.Value = MyReading12 dc.CurrentStep = 12 dc.Value = MyReading13 dc.CurrentStep = 13 dc.Value = MyReading14 dc.CurrentStep = 14 dc.Value = MyReading15 dc.CurrentStep = 15 dc.Value = MyReading16 dc.CurrentStep = 16 dc.Value = MyReading17 dc.CollectionPlanID = 0 dc.UserName = "" set dc = Nothing End Sub
If (ObjDimCmd.Type = DIMENSION_TRUE_END_POSITION) Then
Maybe?
Try
If (ObjDimCmd.Type = DIMENSION_END_TRUE_POSITION) Then
'Open WinSPC and Collection Plan Set dc = CreateObject("WinSPC.DataCollectionAuto") dc.Visible = True dc.RunHeadless = False While dc.ReadyForLogin = "F" Wend dc.UserName = "1675 CMM" dc.Password = "1675" dc.CollectionPlanID = 8533 dc.TagIndex = 0 dc.TagValue = "P566290" dc.TagIndex = 1 dc.TagValue = StrC2 dc.TagIndex = 2 dc.TagValue = StrC1 dc.CurrentStep = 0 dc.Value = MyReading1 dc.CurrentStep = 1 dc.Value = MyReading2 dc.CurrentStep = 2 dc.Value = MyReading3 dc.CurrentStep = 3 dc.Value = MyReading4 dc.CurrentStep = 4 dc.Value = MyReading5 dc.CurrentStep = 5 dc.Value = MyReading6 dc.CurrentStep = 6 dc.Value = MyReading7 dc.CurrentStep = 7 dc.Value = MyReading8 dc.CurrentStep = 8 dc.Value = MyReading9 dc.CurrentStep = 9 dc.Value = MyReading10 dc.CurrentStep = 10 dc.Value = MyReading11 dc.CurrentStep = 11 dc.Value = MyReading12 dc.CurrentStep = 12 dc.Value = MyReading13 dc.CurrentStep = 13 dc.Value = MyReading14 dc.CurrentStep = 14 dc.Value = MyReading15 dc.CurrentStep = 15 dc.Value = MyReading16 dc.CurrentStep = 16 dc.Value = MyReading17 dc.CollectionPlanID = 0 dc.UserName = "" set dc = Nothing End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |