Open files from revit server

revit
dynamo

#1

Hello!

Is there a way to open files from revit server for dynamo automation?


#2

Did you try a string in the file path input with RSN://RevitServerName/Folder/FileName ?


#3

Now I have tried it with // instead of / but not working.

I think the problem comes from the fact that if you put the same link in the open dialog of revit it is not jumping to the location. You have to click on the revit server icon on the side bar.

If you check the image I have string in the file path as there is no way to browse to the revit server.


#4

I have a tool that accesses Revit Server using this path. So im guessing it’s possible


#5

Are you sure you should be using / instead of \ for directory string?


#6

we have tools accessing revit server also, its pretty much possible. What I don’t know how it is possible with dynamo and if the DynamoAutomation package can handle revit server files or not.

This happens when I’m changing to backslash:


#7

That is better than the error before. The first error meant that the filepath was invalid from a “we can’t even read it” point of view. This error just means that the file doesn’t exist at the filepath you entered (either file isn’t there or path isn’t right)


#8

Well, if you get the central path from revit with the below script it gives it to you with // not with \
I’m not entirely sure if this is a better error, it’s like you inputted nothing.

OUT = BasicFileInfo.Extract(doc.PathName).CentralPath

#9

I would say “unable to find the file” is more on the right track than “we can’t even read the file path you wrote” but I can’t find anywhere online that shows how to access the revit server network by its url so I can’t help, sorry.