Skip to main content

IModelCopyService.Paste Method

Namespace: NextDesign.Core.Runtime

Description​

Pastes a copied model in the specified project to the specified model location.
Pasting to another project is also possible.

Argument​

NameTypeDescription
projectIProjectProject
contextICopyContextCopy context
pasteTargetIModelModel as the base point for the paste destination

Return value​

  • void

Exception​

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for project
If null is specified for context
If null is specified for pasteTarget
Invalid operationExtensionInvalidOperationExceptionIf project is a closed project is specified.
If the paste process cannot be performed.
Example: When the base model of the paste destination is read-only.
   When the model to be pasted contains an interaction element model (such as a lifeline).
UnsupportedExtensionNotSupportedExceptionWhen the current edition of the application is not compatible.