Convert the rvt file into the type of Autodesk.Revit.DB.Document

Hello everyone.
I would like to ask, is there a way to convert the rvt file selected by File From Path into the type of Autodesk.Revit.DB.Document?
Or is there a way to directly select a Autodesk.Revit.DB.Document?

Thank you.

Hi @b10705001F2HWP something here maybe…

1 Like

Thank you! This method seems to be working!
But because the selected document is the link document of the current document, Applications.CloseDocument node seems to be failed. Is this a big problem?

1 Like

Hi not sure i understand then, if it the link document, you already do it in your first image with "select.get documents

Yes, I originally used select.get documents to obtain the link document.
But some files will have multiple link documents, so I want to use File Path to directly select a specific file.