The following plugin makes residual variables invisible. Their variances and their variable names are also made invisible. Furthermore, regression weights for paths leading from residual variables are made invisible. The UndoToHere / UndoResume method pair allows you to undo the changes by pressing .
Imports Microsoft.VisualBasic
Imports Amos
<System.ComponentModel.Composition.Export(GetType(IPlugin))>
Public Class CustomCode
Implements IPlugin
Public Function Mainsub() As Integer Implements IPlugin.Mainsub
Dim e As PDElement
pd.UndoToHere()
For Each e In pd.PDElements
If e.IsUniqueVariable Then
e.InvisibleName = True
e.InvisibleParameters = True
e.InvisiblePicture = True
ElseIf e.IsPath Then
If e.Variable1.IsUniqueVariable Then
e.InvisibleParameters = True
End If
End If
Next
pd.DiagramRedrawDiagram()
pd.UndoResume()
End Function
Public Function Name() As String Implements IPlugin.Name
End Function
Public Function Description() As String Implements IPlugin.Description
End Function
End Class