Formatting Linked Properties to New Vars

I feel like this should be an easy feat...

I have a CustomProperty called PartNo that follows the format X123456-789 and I want to copy the first 7 characters to a new variable called DrwgNo automatically in a Datacard.

- Input Formula only works "when a user manually enters a value"

SolidworksSolidworks Pdm enterprise Pdm