Make the value of your PAR_D custom property the following text value:
This should give you 0001PRXYZ as you have stated.
Thank you Alex!
Is it possible, for example, to use part file name, trim some data and assign it to parameter.
File name: "0001-PR-XYZ.sldprt"
PAR_A=left(part_file_name, 4 strings) ==> 0001
Just like I would do it in Excel? Does SW have something like this?