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