Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an add-in that lets user selects mutliple models and for each, it is made the active document, some properties are added to it, then the document is saved and closed. This works for models that are local to my machine. But if I run it on the model that is in Drive (accessed via Autodesk Docs that mirrors Autodesk Construction Cloud), it fails with the error that "Drawing is write protected".
My snippet of the code that does the save:
db.SaveAs(acadDoc.Name, true, DwgVersion.Current, acadDoc.Database.SecurityParameters);
doc.CloseAndSave(doc.Name);
Question:
I observe that when the model from Autodesk Docs (shared drive) is opened via the add-in, a lock gets applied. so db.SaveAs is not working. How do I prevent this?
Solved! Go to Solution.