To populate setup sheets with information about toolpaths and tools in an NC program, use the following functions in the relevant .html template:
${number_nctoolpaths(entity('ncprogram', ncprogram.name))}
${number_nctools(entity('ncprogram', ncprogram.name))}
${join(list_nctools(entity('ncprogram', ncprogram.name)), ',')}