Document Detach and Save As relinquished

Hi,

I’m trying to Create a Script which Detaches and Opens and saves As in another location. Is there any way I could relinquish all the Workset while saving file?

The package used in Orchid.

I hope this works for you.

Thanks

Sujan, did you get this to work? I am trying to create something similar, but am not successful with the document save as. essentially I am trying to open a set of documents in the background and save them to a new location.

Hey Rafi,

Please have a look at the attached script.
Detach and Save as File_V2 .dyn (55.2 KB)

1 Like

Thank you Sujan, I will take a look.

I’ve been trying the script, but for some reason the node SynchronizeWithCentral in Document always fails and I have no idea why…
But if I skip this node the rest of the script works just fine.
Anyone knows what’s going wrong?

Hi ALura,

The SynchronizeWithCentral in Document expects a Revit.DB.Document and not a Dynamo Revit.Application.Document.
Use the new Rhythm Documents.DynamoDocumentToDbDocument node to perform the “conversion”.

1 Like