Skip to main content

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

NameTypeDescription
projectIProjectProject
modelsIEnumerable<IModel>Enumeration of models

Return value

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf project is specified as null
If models is specified as null
Invalid operationExtensionInvalidOperationExceptionIf a closed project is specified as project