Method CreateMirrorDocument
CreateMirrorDocument(PdmObjectId, DocumentId, bool)
Creates the derived mirror part or assembly of a specified part or assembly.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 10, 0, 0)]
DocumentId CreateMirrorDocument(PdmObjectId inOwnerId, DocumentId inDocumentId, bool inUseDefaultTemplate)
Parameters
| Type | Name | Description |
|---|---|---|
| PdmObjectId | inOwnerId | Identifier of owner. |
| DocumentId | inDocumentId | Identifier of the part or assembly document to derive. |
| bool | inUseDefaultTemplate | Tells whether to use the default template if present. |
Returns
| Type | Description |
|---|---|
| DocumentId | Derived mirror part or assembly document identifier. |
Remarks
If the specified part or assembly already has a symmetrical document (i.e. the method SearchSymmetricalDocument(DocumentId) does not return Empty), it is not allowed to create a derived mirror document, and this method throws an exception.
This method must not be called between StartModification(string, bool) and EndModification(bool, bool) methods calls.
This method is available since v7.10.