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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

RD_9833370
3-Newcomer

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

ACCEPTED SOLUTION

Accepted Solutions
TomU
23-Emerald IV
(To:RD_9833370)

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

 

View solution in original post

2 REPLIES 2
TomU
23-Emerald IV
(To:RD_9833370)

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

 

RD_9833370
3-Newcomer
(To:TomU)

Thanks, I knew the answer was simple. 

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags