2027 Method
Changes 0
M

WorksharingUtils.CreateNewLocal

Description:
Takes a path to a central model and copies the model into a new local file for the current user.
public static void CreateNewLocal(
	ModelPath sourcePath,
	ModelPath targetPath
)
  • sourcePath
    The path to the central model.
  • targetPath
    The path to put the new local file.
  • The given path sourcePath is a cloud path which is not supported in this method. -or- The model is not workshared. -or- The central model has not fully enabled worksharing. It must be opened and resaved to finish enabling worksharing. -or- The model is a local file. -or- The central model is not saved in the current Revit version. -or- The model is transmitted. -or- -or- The specified filepath is invalid.
  • A non-optional argument was null
  • Access to the central model was denied due to lack of access privileges. -or- Access to the central model was denied. A possible reason is because the model was under maintenance.
  • The central model is locked by another user. -or- The central model is being accessed by another client.
  • The central model is missing. -or- An internal error happened on the central model, please contact the server administrator.
  • The file or folder already exists and cannot be overwritten.
  • This functionality is not available in Revit LT. -or- File already exists! -or- Revit Server does not support local models.
  • The server-based central model could not be accessed because of a network communication error.
  • An internal error happened on the server, please contact the server administrator.