Your Products have been synced, click here to refresh
' vpt.se in 2013 Sub Main Dim PCDApp, PCDPartPrograms, PCDPartProgram, PCDCommands, PCDCommand Dim tX, tY, tZ, mX, mY, mZ As String Set PCDApp = CreateObject("PCDLRN.Application") Set PCDPartPrograms = PCDApp.PartPrograms Set PCDPartProgram = PCDApp.ActivePartProgram Set PCDCommands = PCDPartProgram.Commands Dim iCnt as integer Open PCDPartProgram.Path & "POINTDATA.TXT" For Append As #1 For iCnt = 1 To PCDCommands.Count Set PCDCommand = PCDCommands.Item(iCnt) If Left(PCDCommand.ID, 3) = "PNT" Then tX = PCDCommand.GetText(THEO_X, 0) tY = PCDCommand.GetText(THEO_Y, 0) tZ = PCDCommand.GetText(THEO_Z, 0) mX = PCDCommand.GetText(MEAS_X, 0) mY = PCDCommand.GetText(MEAS_Y, 0) mZ = PCDCommand.GetText(MEAS_Z, 0) Write #1, PCDCommand.ID & " " & tX & " " & tY & " " & tZ & " " & mX & " " & mY & " " & mZ End If Next iCnt Close #1 Set PCDCommands = Nothing Set PCDPartProgram = Nothing Set PCDPartPrograms = Nothing Set PCDApp = Nothing End Sub
' vpt.se in 2013 Sub Main Dim PCDApp, PCDPartPrograms, PCDPartProgram, PCDCommands, PCDCommand Dim tX, tY, tZ, mX, mY, mZ As String Set PCDApp = CreateObject("PCDLRN.Application") Set PCDPartPrograms = PCDApp.PartPrograms Set PCDPartProgram = PCDApp.ActivePartProgram Set PCDCommands = PCDPartProgram.Commands Dim iCnt as integer Open PCDPartProgram.Path & "POINTDATA.TXT" For Append As #1 For iCnt = 1 To PCDCommands.Count Set PCDCommand = PCDCommands.Item(iCnt) If Left(PCDCommand.ID, 3) = "PNT" Then tX = PCDCommand.GetText(THEO_X, 0) tY = PCDCommand.GetText(THEO_Y, 0) tZ = PCDCommand.GetText(THEO_Z, 0) mX = PCDCommand.GetText(MEAS_X, 0) mY = PCDCommand.GetText(MEAS_Y, 0) mZ = PCDCommand.GetText(MEAS_Z, 0) Write #1, PCDCommand.ID & " " & tX & " " & tY & " " & tZ & " " & mX & " " & mY & " " & mZ End If Next iCnt Close #1 Set PCDCommands = Nothing Set PCDPartProgram = Nothing Set PCDPartPrograms = Nothing Set PCDApp = Nothing End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |