public static Document OpenNewLocalFromCentralModelPath(Application app, ModelPath centralPath, ModelPath localPath, WorksetConfiguration worksetConfig)
{
//код взял из https://help.autodesk.com/cloudhelp/2018/ENU/Revit-API/Revit_API_Developers_Guide/Advanced_Topics/Worksharing/Opening_a_Workshared_Document.html
// Create the new local at the given path
WorksharingUtils.CreateNewLocal(centralPath, localPath);
OpenOptions options1 = new OpenOptions();
if(worksetConfig!=null)
{
options1.SetOpenWorksetsConfiguration(worksetConfig);
}
Document openedDoc = app.OpenDocumentFile(localPath, options1);
return openedDoc;
}