Select Event (Application Object)

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.

Usage

Sub Application_Select(ByVal SelectionType As VdSelectionType, ByVal Block As IVdBlock)

Arguments

SelectionType

This argument specifies the selection type. It takes the form of VdSelectionType Enum.

Block

This argument specifies the Block Object that contains the object that is being selected.

Examples

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