add generate Tcx file method

Signed-off-by: xuzhi <yahch@qq.com>