Parameters
- part
- Template part.
- variant
- Name of the new variant.
Type Parameters
- T
- Type of the template and result variant.
Return Value
Created variant of part.
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ArgumentNullException | Argument is null. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
EPLAN.Harness.API.Exceptions.FileOpenedAsReadOnlyException | You can not perform this action on a document opened as read only. |
EPLAN.Harness.API.Exceptions.PartNotFoundException | The exception that is thrown when the part is not found in the library. |
EPLAN.Harness.API.Exceptions.LicensingErrorException | This operation was denied because of your license. |