MasterDocument Object
A Document object that represents the master document from which the current project copy document was copied. The methods of the MasterDocument object are described below.
MasterDocument Object Methods
The MasterDocument object has the following methods.
Activates the next project copy in the waiting list of a master document. If the concurrent engineering rule property is set to AS_CER_SERIAL_WITH_RELEASE, the property Waiting PC Priority is set to 0 for the activated project copy.
Syntax
TransferToNext
Example
In this example, the vault is configured to use a property called AutoTransfer, which is set by a user on the project folder. This is used to determine whether to execute the TransferToNext method.
Copy
Sub DocProjectCopyEvent_AfterReleaseToMaster(Batch, MasterDoc, ProjectCopyChanged)
MasterDoc.ReleasedBy = Vault.User
MasterDoc.ReleasedAt = Year (Today) & "-" & Right ("0" & Month (Today), 2) & "-" & Right ("0" & Day (Today), 2)
MasterDoc.ReleasedFromProject = Document.ProjectName
MasterDoc.ProjectName = ""
MasterDoc.ApplyPropertyValues
If Document.ParentProject.Project_AutoTransfer Then
MasterDoc.TransferToNext
End If
End Sub