How to get file path of a invokebutton?

Hello everyone, is there a way to get the file path of a invokebutton? I tried using ExecParams as the example on pyrevit’s documentation page to get it, but I got the error as shown below.


image

Hi @Luffy11

Please add some more info: what version of pyRevit are you running, on what version of Revit?

Can you show us what’s inside “see details”?

That being said, we fixed some things in the WIP version, if you’re on 4.8.x you could try that to see if it works

hi @sanzoghenzo , you’re right, it’s because I was using pyRevit version 5.0. After changing to version 4.8.x, it works well. Thanks for your response. But I have an extra question: because pyRevit 5.0 is a WIP version, I can’t use this method for Revit 2025. So is there a way to get the result without using any external packages?