how to auto update drawing part no in template

How to auto-update part no in customized template