Your Products have been synced, click here to refresh
You need to check first that the current command is a tracefield command by using the "if cmd.istracefield" logic shown above.
Otherwise the tracefield member of the current command will be empty resulting in the error you are getting.
Sent from my SPH-L710 using Tapatalk
Dim PCDApp As Object Dim Part As Object Dim Cmds As Object Dim Cmd As Object Dim TCmd As Object Dim TCmds As Object Set PCDApp = CreateObject("PCDLRN.Application") Set Part = PCDApp.ActivePartProgram Set Cmds = Part.Commands Dim VSERIALNUMBER As Object For Each Cmd In Cmds If Cmd.IsTracefield Then Set TCmd = Cmd.TraceFieldCommand Set VSERIALNUMBER = TCmd("Serial Number").GetText End If Next Cmd
You need to check first that the current command is a tracefield command by using the "if cmd.istracefield" logic shown above.
Otherwise the tracefield member of the current command will be empty resulting in the error you are getting.
Sent from my SPH-L710 using Tapatalk
Dim PCDApp As Object Dim Part As Object Dim Cmds As Object Dim Cmd As Object Dim TCmd As Object Dim TCmds As Object Set PCDApp = CreateObject("PCDLRN.Application") Set Part = PCDApp.ActivePartProgram Set Cmds = Part.Commands Dim VSERIALNUMBER As Object For Each Cmd In Cmds If Cmd.IsTracefield Then Set TCmd = Cmd.TraceFieldCommand Set VSERIALNUMBER = TCmd("Serial Number").GetText End If Next Cmd
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |