cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
RD_9833370
Guest

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

 

View solution in original post

2 REPLIES 2

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

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

 

View solution in original post

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

Thanks, I knew the answer was simple. 

Announcements