Your Products have been synced, click here to refresh
Set MyVar = MyPartProgram.GetVariableValue ("TIMETOMOVE") MsgBox (MyVar.LongValue)
Sub Main Dim MyApp As Object Set MyApp = CreateObject ("PCDLRN.Application") Dim MyPartProgram As Object Set MyPartProgram = MyApp.ActivePartProgram Dim MyVar As Object Set MyVar = MyPartProgram.GetVariableValue ("TIMETOMOVE") MSGBOX Myvar.LongValue If Not MyVar Is Nothing Then MyVar.LongValue = MyVar.LongValue + 1 MyPartProgram.SetVariableValue "TIMETOMOVE", MyVar MsgBox "V1 is now: " & CStr(MyVar.LongValue) Else Msgbox "Could Not find variable" End If End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |