Inherits: AttributePosition < TextPosition < DesignItem < ScriptObject

An AttributePosition is visible instance of an Attribute attached to a particular DesignItem, such as a Component or a Pad.

Properties

NameTypeGet/SetBrief
AttributeNameAttributeNameYes/NoThe AttributeName of the AttributePosition’s parent attribute.
IsOnAllPagesboolYes/NoNo description provided.

Methods

NameReturnsArguments
DuplicateAttributePosition
Stringstrpage : Variant[Page, none]
ignoreVariants : Variant[bool, none]

Property Details

AttributeName

Type: AttributeName

The AttributeName of the AttributePosition’s parent attribute.


IsOnAllPages

Type: bool

Method Details

Duplicate

Create a copy of an existing attribute position, for example to help you make a second copy of a Component Name on another layer.

Returns AttributePosition.


String

Get the text that this attribute position is currently displaying.

Returns str.

Arguments:

  • page : Variant[Page, none] - The page to look on. Must be specified if this attribute appears on all pages.
  • ignoreVariants : Variant[bool, none] - Whether to ignore variants, defaulting to false.