AddAttribute Method (Net Object)

Scope: Schematic editor

Object: Net Object

Prerequisites: None

Adds an Attribute Object to the net on the specified segment at the coordinates passed.

Usage

Net.AddAttribute(ByVal Segment As IVdSegment, ByVal String As String, ByVal X As Long, ByVal Y As Long, ByVal Visibility As VdVisibilityFlag) As IVdAttr

Arguments

Segment

Segment Object with which the attribute is associated.

String

Attribute string of the form NAME=VALUE.

X

X coordinate of the attribute.

Y

Y coordinate of the attribute.

Visibility

Specifies the visibility of the attribute in the form VdVisibilityFlag Enum.

Return Values

As IVdAttr. The Attribute Object.