I have managed to get an output of the local filename of a Project to a label in our titleblock using Document.FilePath in Dynamo. Is there also a way to get the central filename?
Hello @HE-MJJ and welcome…you could try this one here from genius loci
There is OOTB Document.WorksharingPath which will provide the worksharing file location
Thanks! I guess that’s what I need. But how/where can I add this? Because if I search, I dont get such result.
It was added to the GitHub repository 4½ years ago
Revit 2022 / Dynamo 2.12
Thanks, I just noticed this under Revit 2024.
Is it possible to get that under Revit 2020? Because I use that version to develope the Project/Families that we use as a basis, starting point for new and also exising 2020+ projects that we cannot upgrade because of other companies using older versions.
Yeah not sure ootb is in2020 cant remember but then genius loci should work i guess…or you can try this one here should work in 2020
path Home.dyn (3.5 KB)
So the company who is blocking upgrades to a supported build is paying the premiums for cyber security insurance for all project participants, right? Cuz that build is TWO YEARS outside of the support window and almost certainly has know vulnerabilities which are not patched and will not be patched which means it’s only a matter of time until there’s an incident…
I’m getting this in R’22
The Project is Worksharing enabled. I’m working in a local file, able to sync with central.
Are you on the latest build of Revit 2022? Any add-ins in conflict?
22.1.70.9
20240704_1515(x64)
2022.1.7
Sorry! I was looking at the wrong Revit version. It was not Workshared yet!
Good to know! I was having a bit of a head scratcher for a minute there.
I’ve got it working. Thanks!
Can I make it also run automatically when opening a project?
I wouldn’t recommend it, as it’s not officially supported, but you could look into defining an event listener. Search the forum for examples. Generally speaking Dynamo should only be used for processing the active file when you request it to do so, and Dynamo player can help make things more digestible for end users who only want to use Revit if that’s your goal. For ‘automatically occurring events’ you’d want to build an add-in with an event listener built into it.
Ok, thanks for clarifying.