I’m trying to use Document.SaveAs node but it seems like I’m having a trouble with File Path.
I thought filePath wants a location where the file wants to get saved and i tried different ways but no good. Any tips would be greatly appreciated.
So what I want to achieve here is set up a folder path where Dynamo can save the file at. I thought that’s what this node is doing since SAVE AS is a function where a user can save the copy of the file in a DIFFERENT location.
So i’m curious why I have to put rvt at the end where it sounds like its going to override the original file?
Please note the difference between the Dynamo document and the API document (without wrapper).
Unfortunately it’s not possible to use Dynamo documents with custom nodes so use another node to obtain the current document.
I guess I couldn’t decipher the difference between the two. So I tried to save my current Revit Project @ new location (Directory Path) but its throwing an error. I thought this is how this node works but I guess I’m completely misunderstanding something. Could you please share any tips on how to use this? or which node should I use for ‘SAVING AS’ function.
Directory path will not work on it’s own as mentioned previously by @simon_murphy1 .
Feed in an actual file path with a full filename and .rvt extension and the node will work.
To reiterate why the directory node does not work, if you were to point your Revit file open menu to your desktop and say “open revit file” without selecting a file, what would you expect revit to do? Well, it is going to do nothing because you did not select a file.