Components Object

You can add a collection of Components to a DataBook object name. You can assign Count and Item properties to the Components object.
Table 1. Components Object Methods, Properties, and Events

Method, Property, or Event

Description

Count Property (Components Object)Returns the number of component objects in the Components object.
Item Method (Components Object)Returns a Component object contained in the collection.
Application_AddComponent EventYou can use the Application_AddComponent event to check a component’s properties before adding it to the schematic. For example, checking if the approved part’s properties exist before instantiating a component can help prevent adding unapproved parts to the schematic.
Application_AfterAddComponent EventThe Application_AfterAddComponent event is used in a DataBook script to make direct changes to the component on a schematic.
Application_AfterAnnotateComponent EventThe Application_AfterAnnotateComponent event is used in a DataBook script to make direct changes to the component on a schematic.
Application_AnnotateComponent EventThe Application_AnnotateComponent event is used in a DataBook script to prevent unapproved parts from being added to the schematic by making sure the approved part property exists before instantiating a component.
Application_LoadComponent EventThe Application_LoadComponent event is used in a DataBook script to override the mapping from the loaded component to the library used in the DataBook search.