ApplicationCopyModel Method |
Copies an existing model to a new file. Overwriting a file of the same name is allowed.
Namespace: Autodesk.Revit.ApplicationServicesAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void CopyModel(
ModelPath sourceModelPath,
string destFilePath,
bool overwrite
)
Public Sub CopyModel (
sourceModelPath As ModelPath,
destFilePath As String,
overwrite As Boolean
)
public:
void CopyModel(
ModelPath^ sourceModelPath,
String^ destFilePath,
bool overwrite
)
member CopyModel :
sourceModelPath : ModelPath *
destFilePath : string *
overwrite : bool -> unit
Parameters
- sourceModelPath ModelPath
-
The path of the file-based or server-based source model.
- destFilePath String
-
The path of the destination file.
- overwrite Boolean
-
True if the destination file can be overwritten; otherwise, false.
Exceptions
See Also