BlueCielo Meridian Enterprise 2018 VBScript API Reference
DocCADLink_BeforeWriteMTBProperties event
Occurs before a document property that is mapped to multiple title block attributes is written.
Syntax
DocCADLink_BeforeWriteMTBProperties (Batch, BCPropStorage)
| Name | Description |
|---|---|
| Batch | An object that represents the batch of documents the user has selected. |
| BCPropStorage |
An object that contains the property information that will be written. See About the BCPropStorage object for its available properties and methods. |
Example
Sub DocCADLink_BeforeWriteMTBProperties(Batch, MTBProperties)
Document.Log "BeforeWriteMTBProperties -->"
Dim rowCollection, allColDefs, colDef, row
Set allColDefs = MTBProperties.GetColumnDefs(2)
Set rowCollection = MTBProperties.Rows
For Each row in rowCollection
For Each colDef In allColDefs
If Not row.Property(colDef.Name) Is Nothing Then
Dim rv: rv = "AfterReadMTB_Layout: " & _
row.Property("Layout").Value & vbCrLf & _
"Property: " & CStr(colDef.Name) & vbCrLf & _
"Value: " & CStr(row.Property(colDef.Name).Value)
Document.Log rv
End If
Next
Next
End Sub