Scope: Schematic editor
Object: Block Object
Prerequisites: None
Searches for an attribute by its name.
Block.FindAttribute(ByVal AttributeName As String) As IVdAttr
The name of the attribute that is the object of the search.
As IVdAttr. This is the Attribute Object if found, otherwise it is null.
This example finds the PageNum attribute.
Set PageNumAttr=ActiveView.Block.FindAttribute("PAGENUM")
If PageNumAttr Is Nothing Then
Else
PageNumAttr.Value="2"
End If