Scope: Schematic editor
Object: Attribute Object
Access: Read/Write
Prerequisites: None
Returns or sets the string associated with an attribute.
Attribute.TextString = String
None
String. A string that contains the value of the attribute.
This string is of the form NAME=VALUE. The Name Property (Attribute Object) specifies the NAME portion, while the Value Property (Attribute Object) specifies the VALUE portion. TextString specifies the full specification. If the attribute has an instance (OAT) value, setting or referencing this property affects that value.
MsgBox attr.TextString ' Prints NAME=VALUE
MsgBox attr.Name ' Prints NAME
MsgBox attr.Value ' Prints VALUE
' Set attribute's NAME to REFDES and VALUE (or instance value) to U7
attr.TextString = "REFDES=U7"