I want to output the name of my part on which i have created operations.
I am currently using the variable mom_part_name, but the output consists of complete path details too.
I just want to out the part name.
One way to do i found is :
set x [string file tail $mom_part_name]
It will output only the final part name after the last separator.
If $mom_part_name return a full path
set filename [file tail $mom_part_name]
Return filename with extension
If you want without extension :
set filename_without_extension [file tail [file rootname $mom_part_name]]
Hope que ça helps
Production: NX126.96.36.199,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot