Scope: Schematic editor
Object: Application Object
Prerequisites: None
Occurs when an object is selected or unselected. You can use this event to access such things as crossprobing.
Sub Application_Select(ByVal SelectionType As VdSelectionType, ByVal Block As IVdBlock)
This argument specifies the selection type. It takes the form of VdSelectionType Enum.
This argument specifies the Block Object that contains the object that is being selected.
Display the ID of the selected component.
Sub Application_Select(SelectionType, Block)
If SelectionType = VDSELECT_NOTIFY Then
For Each obj In ActiveView.Query(VDM_COMP, VD_SELECTED)
MsgBox obj.UID
Next
End If
End Sub