Sequence Numbers are turned off in a Post Configurator post. TCL code is than added to output a single Sequence Number at the beginning of every Operation. This N number will be used when searching the program to rerun an Operation. It will have a total of four characters. The first two digits of the output will be a counter telling how many operations have previously used this tool. The last two digits will indicate the tool number. The picture below shows the desired output. Notice in the picture that the tool number is 3. These two operations are the second and third time this tool is run. What TCL code can be used for this?
Create a custom Layer and add the following TCL. Be careful that the code looks like the picture below and that no lines wrap to the next line.
LIB_GE_command_buffer_edit_append LIB_SPF_operation_header_comment HEADER_COMMENT {
if { ![info exists ::mom_tool_index($::mom_tool_number)] } {
set ::mom_tool_index($::mom_tool_number) 1
} else {
set ::mom_tool_index($::mom_tool_number) [expr $::mom_tool_index($::mom_tool_number) + 1]
}
MOM_output_text "N[format "%-4.4d" [expr $::mom_tool_index($::mom_tool_number)*100+$::mom_tool_number]]"
} _seqtc
NotesPlease be aware that any code provided by GTAC is intended to be used for sample purposes only. It is the user's responsibility to determine whether the code is suitable for the purpose.