Method SetProjectMainDocument
SetProjectMainDocument(PdmObjectId, PdmObjectId)
Sets the main document of a specified project.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 11, 0, 0)]
void SetProjectMainDocument(PdmObjectId inProjectId, PdmObjectId inDocumentId)
Parameters
| Type | Name | Description |
|---|---|---|
| PdmObjectId | inProjectId | Project object identifier. |
| PdmObjectId | inDocumentId | Main document object identifier or Empty for none. |
Remarks
This method must not be called between StartModification(string, bool) and EndModification(bool, bool) methods calls.
EnsureIsDirty(PdmObjectId) must be called on the project before calling this method.
This method is available since v7.11.