GuidelinesTo write specific methods in the OTScript tab, you need to know the datamodels of the objects you work with and the internal names of these objects.
ExamplesAn example of an OTScript method, which lets you list bookmarked documents is as follows: PACKAGE PLM;
METHOD Workspace.getBookmarkedUniqueDocuments() -doc : {
`rel_Data Vaults`.`to_Workspace Vault`.`rel_Vaulted Objects`.to_Document.SELECTUNIQUE(id);
} LABEL "Contained Documents without duplication"
You can define a shortcut method to overwrite the physical products navigation in a product structure. This customized method lets you display the product titles following a sort criterion based on the titles. For more information, see About the Creation of Shortcut Methods. PACKAGE PLM; METHOD rel_VPMInstance.getReferenceTitle() -doc : GetReferencePLMReference.V_Name LABEL "Reference Title"; METHOD VPMReference.getSubProductReferences() -doc : SubProducts.GetReferencePLMReference[EACH ISA VPMReference] LABEL "Sub Product References"; Method CallA method accepts parameters as arguments. Any valid code can be passed as arguments to a provided method or an own method. In OTScript, arguments are passed as follows to a method: Note:
Here is a list of special calls:
| |||||||||