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
Name | Type | Description |
---|---|---|
project | IProject | Project |
context | ICopyContext | Copy context |
pasteTarget | IModel | Model as the base point for the paste destination |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for project If null is specified for context If null is specified for pasteTarget |
Invalid operation | ExtensionInvalidOperationException | If 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). |
Unsupported | ExtensionNotSupportedException | When the current edition of the application is not compatible. |