FindAttribute Method (Block Object)

Scope: Schematic editor

Object: Block Object

Prerequisites: None

Searches for an attribute by its name.

Usage

Block.FindAttribute(ByVal AttributeName As String) As IVdAttr

Arguments

AttributeName

The name of the attribute that is the object of the search.

Return Values

As IVdAttr. This is the Attribute Object if found, otherwise it is null.

Examples

This example finds the PageNum attribute.

Set PageNumAttr=ActiveView.Block.FindAttribute("PAGENUM") 
If PageNumAttr Is Nothing Then 
Else 
   PageNumAttr.Value="2" 
End If