Inherits: SymbolInstance < DesignItem < ScriptObject

This object provides you with access to the information about an instance of a symbol in a design. This is the copy of the Symbol as used by each Gate of a Component. In a PCB design, components always have one symbol instance.

Properties

NameTypeGet/SetBrief
AnglefloatYes/NoThe rotation angle of this instance in degrees.
AreasArray[Area]Yes/NoThe list of areas belonging to this instance.
BondPadsArray[BondPad]Yes/NoThe list of bond pads belonging to this instance.
CalloutsArray[Callout]Yes/NoThe list of callouts belonging to this instance.
CopperArray[Copper]Yes/NoThe list of copper shapes belonging to this instance.
DocShapesArray[DocShape]Yes/NoThe list of documentation shapes belonging to this instance.
IsDocSymbolboolYes/NoTrue if this instance is a Doc Symbol, False if not.
IsPlacedboolYes/NoWhether this symbol instance has been placed on the design.
MirroredboolYes/YesWhether this instance is mirrored.
MountingHolesArray[MountingHole]Yes/NoThe list of mounting holes belonging to this instance.
NamestrYes/NoThe name of the symbol this is an instance of.
PadsArray[Pad]Yes/NoThe list of pads belonging to this instance.
PageVariant[Page, none]Yes/NoThe page of the symbol instance.
PinCountintYes/NoThe number of pins on this instance.
PositionPointYes/YesNo description provided.
SymbolSymbolYes/NoThe symbol that this is an instance of.
TextArray[Text]Yes/NoThe list of text items belonging to this instance.

Methods

NameReturnsArguments
AddAttributePositionAtAttributePositionattributeName : str
pos : Point
layer : Variant[Layer, none]
DeleteAttributePositionboolattributeName : str
layer : Variant[Layer, none]
Placenoneposition : Point
page : Variant[Page, none]
Unplacenone

Property Details

Angle

Type: float

The rotation angle of this instance in degrees.


Areas

Type: Array[Area]

The list of areas belonging to this instance.


BondPads

Type: Array[BondPad]

The list of bond pads belonging to this instance.


Callouts

Type: Array[Callout]

The list of callouts belonging to this instance.


Copper

Type: Array[Copper]

The list of copper shapes belonging to this instance.


DocShapes

Type: Array[DocShape]

The list of documentation shapes belonging to this instance.


IsDocSymbol

Type: bool

True if this instance is a Doc Symbol, False if not.


IsPlaced

Type: bool

Whether this symbol instance has been placed on the design.


Mirrored

Type: bool

Whether this instance is mirrored.


MountingHoles

Type: Array[MountingHole]

The list of mounting holes belonging to this instance.


Name

Type: str

The name of the symbol this is an instance of.


Pads

Type: Array[Pad]

The list of pads belonging to this instance.


Page

Type: Variant[Page, none]

The page of the symbol instance.


PinCount

Type: int

The number of pins on this instance.


Position

Type: Point


Symbol

Type: Symbol

The symbol that this is an instance of.


Text

Type: Array[Text]

The list of text items belonging to this instance.

Method Details

AddAttributePositionAt

Add a new attribute position to this instance.

Returns AttributePosition: The created attribute position.

Arguments:

  • attributeName : str - Name of the new attribute position.
  • pos : Point - The point to place his attribute position on.
  • layer : Variant[Layer, none] - The layer to place the new attribute position on.

DeleteAttributePosition

Delete an attribute position from this instance.

Returns bool: Whether the deletion was successful.

Arguments:

  • attributeName : str - Name of the attribute position to delete.
  • layer : Variant[Layer, none] - The layer from which to delete the attribute position.

Place

Place this symbol instance from the component bin on the design.

Licences required: Scripting Advanced Features.

Arguments:

  • position : Point
  • page : Variant[Page, none]

Unplace

Licences required: Scripting Advanced Features.