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.


    Yea I exported the basic code to get a look at the commands, but there's not a command for "getting" the value from the tracefield.

    I tried:

    "Cmd.GetTracefield.Value("blah..blah") --- nothing
    Set variable = Part.TracefieldValue blah blah --- nothing

    I'll keep trying other commands until I get it

    Thanks for the help...
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.


    Yea I exported the basic code to get a look at the commands, but there's not a command for "getting" the value from the tracefield.

    I tried:

    "Cmd.GetTracefield.Value("blah..blah") --- nothing
    Set variable = Part.TracefieldValue blah blah --- nothing

    I'll keep trying other commands until I get it

    Thanks for the help...
Children
No Data