Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I am creating a new drawing format and in the table where I show the file name I am using the parameter &PTC_WM_NUMBER. So if the file name is 123456abc.prt it shows up in the tile block as 123456abc.prt.
I want to find a way to remove the extension .prt or .asm and just show the file name "123456abc".
Solved! Go to Solution.
Number is a Windchill parameter. If you want the file name then use &dwg_name for the drawing's name and &model_name for the model's name. Neither of these will include the file extension.
See more here: https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/detail%2FSystem_Parameters_for_Drawings.html%23
Number is a Windchill parameter. If you want the file name then use &dwg_name for the drawing's name and &model_name for the model's name. Neither of these will include the file extension.
See more here: https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/detail%2FSystem_Parameters_for_Drawings.html%23
Thanks, I knew the answer was simple.