Skip to main content

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​

NameTypeDescription
projectIProjectProject
modelIModelModel

Return value​

Exception​

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