🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Note Formatting For String Variables

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

I'm trying to find a way to include the result file name in my plot window without showing the full path. When I first create the .MVW file it looks fine, but when I save it and later reload the note shows the full path, which is typically very long and gets truncated.

I'm using the default:

'Result : {window.resultfilename} '

Which originally prints out something like this:

'Result: BracketModification1.odb'

But after a save and reload ends up looking like this:

Result: /mnt/home/bspeirs/projects/SomeProject/FEA/Install...'

Is there anyway to eliminate the full path? I just want the file name printed.

Or is there a way to have it truncate the leading portion of the path and keep the most relevant part?

Like this

'Result: ...omeProject/FEA/Installation/BracketModification1.odb'

Thanks.

Find more posts tagged with

Sort by:
1 - 2 of 21