hexagon logo

Tracefields and Scripts

Anyone out there know how to retrieve a Tracefield Value from a part program in a script? Can't quite find the right command...
Parents
  • This is what a PCD tracefield command looks like in basic:

    Set DmisCommand = DmisCommands.Add(TRACEFIELD, TRUE)    DmisCommand.Marked = TRUE
      ' Set Name  = Lot #
        retval = DmisCommand.PutText ("Lot #", TRACE_NAME, 0)
      ' Set Value  = 
        retval = DmisCommand.PutText ("", TRACE_VALUE, 0)
      ' Set Value Limit  = 15
        retval = DmisCommand.PutText ("15", TRACE_VALUE_LIMIT, 0)
      Result = DmisCommand.SetExpression("LOT", TRACE_VALUE, 0)


    Just have to figure out how to look for a specific TRACE_NAME then get the TRACE_VALUE.
Reply
  • This is what a PCD tracefield command looks like in basic:

    Set DmisCommand = DmisCommands.Add(TRACEFIELD, TRUE)    DmisCommand.Marked = TRUE
      ' Set Name  = Lot #
        retval = DmisCommand.PutText ("Lot #", TRACE_NAME, 0)
      ' Set Value  = 
        retval = DmisCommand.PutText ("", TRACE_VALUE, 0)
      ' Set Value Limit  = 15
        retval = DmisCommand.PutText ("15", TRACE_VALUE_LIMIT, 0)
      Result = DmisCommand.SetExpression("LOT", TRACE_VALUE, 0)


    Just have to figure out how to look for a specific TRACE_NAME then get the TRACE_VALUE.
Children
No Data