You are here: Appendix D: VBScript reference > The Meridian Enterprise functions > AMMWhereUsedManageLinksIsAllowed function

AMMWhereUsedManageLinksIsAllowed function

User-defined function that controls activation of the Manage Links button in the Manage Object Links dialog box. The button is enabled if this function is not defined or returns True. The button is disabled if this function is defined and returns False.

Syntax
Function AMMWhereUsedManageLinksIsAllowed()
Parameters

This function accepts no parameters.

Example
Function AMMWhereUsedManageLinksIsAllowed()
  ' The current document is a main tag
  ' Search for proxy document
  Dim Drawing
  Set Drawing = FindDoc(Document.ParentFolder.ID, "_M", ".dwg", "AutoPlant")    
  ' If proxy document was not found, use main tag.
  If Drawing Is Nothing Then
    Drawing = Document
  End If
  ' Allow editing when document is not released.
  AMMWhereUsedManageLinksIsAllowed = Drawing.WorkFlowState <> AS_WF_RELEASED
End Function

Remarks

If the vault uses proxy documents for folder linking, the function must implement logic that determines whether the current document is a proxy document or a main tag document as shown in the preceding example. For more information about folder linking, see Configuring linking to folders.

Related concepts

VBScript reference


www.bluecieloecm.com