IModelCopyService.Copy(IProject,IModel) Method
Namespace: NextDesign.Core.Runtime
Description
Copies the specified model in the specified project.
The copied model is managed by ICopyContext and can be pasted as a child element (or sibling element) of any model using Paste().
The copy includes all child elements of the specified model, as well as any relationships between those models.
Argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
model | IModel | Model |
Return value
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If project is specified as null If model is specified as null |
Invalid operation | ExtensionInvalidOperationException | If a closed project is specified as project |