IModelDuplicateService Interface
Namespace: NextDesign.Core.Runtime
Description
Model duplication service.
Provides model duplication operations.
Method
Name | Description |
---|---|
CanDuplicate | Determines whether the specified model can be duplicated in the specified project. If any of the following conditions are met, the method returns false, indicating that duplication is not possible. - The specified model is not managed by the specified project. - The specified model is related. - The specified model does not have a parent element (or the parent element has not been loaded). - Duplication would result in a multiplicity violation for the parent element of the specified model. |
Duplicate | Duplicates the specified model in the specified project. The duplicated model will be placed as the younger sibling of the specified model. Duplication applies to all child elements based on the specified model, as well as relationships between those models and reference relationships that refer to the duplicated model. |