There is an example script in the tcl/ex directory: nam-example-em.tcl, that should help, along with the chapter in the documentation. Tom