F strings

I’ve whinged a lot recently about moving from Revit 21 to Revit 23…

However… I wanna say… whooooo to finally being able to use f strings everywhere :smiley:

FullPath = f'P:\\{office}\\{year}\\{subfolder}\\03-Published\\02-IssuedInfo\\Models\\{today_date} - Model Issue\\{match.group(3)}_detached.rvt'

Always annoyed me I couldn’t make them work in IronPython… So whoooo to this :partying_face:

3 Likes

it’s works on IronPython3 too

But it didn’t work in Revit 21.

And I’m biting the bullet and upgrading :smiley:

yes, because Revit21 use Ironpython2.7 (based on python2.7) and fstring is python3.5+ feature

however it should be noted that the fstring function is regularly updated in the python lifecycle

Yep… Which is why I’m happy :smiley:

I’ve wanted to use them in Dynamo for ages :partying_face:

1 Like