Skip to main content
3-Newcomer
April 28, 2021
Solved

How do I remove the file extension from the file name parameter.

  • April 28, 2021
  • 1 reply
  • 2209 views

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".

Best answer by TomU

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.

 

TomU_0-1619642689616.png

 

See more here:  https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/detail%2FSystem_Parameters_for_Drawings.html%23

 

1 reply

TomU23-Emerald IVAnswer
23-Emerald IV
April 28, 2021

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.

 

TomU_0-1619642689616.png

 

See more here:  https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/detail%2FSystem_Parameters_for_Drawings.html%23

 

3-Newcomer
April 28, 2021

Thanks, I knew the answer was simple.