The following plugin scrolls the path diagram one inch to the right.
Imports System
Imports Amos
Imports Microsoft.VisualBasic
<System.ComponentModel.Composition.Export(GetType(IPlugin))>
Public Class CustomCode
Implements IPlugin
Public Function Name() As String Implements IPlugin.Name
Return "DiagramScroll Method Example"
End Function
Public Function Description() As String Implements IPlugin.Description
End Function
Public Function Mainsub() As Integer Implements IPlugin.Mainsub
Amos.pd.diagramscroll (1,0)
End Function
End Class