Inherits: Part < LibItem < DesignItem < ScriptObject

Parts are manufacturable components, belonging to a part library or to a design.

Parts retrieved from a library and not assigned to a design are “forgotten” by Pulsonix when the associated PartLibrary object is deleted.

Properties

NameTypeGet/SetBrief
AssociatedPartsArray[AssociatedPart]Yes/NoThe list of AssociatedPart items that belong to this Part.
DefaultFootprintNamestrYes/YesThe name of the default footprint to use for this part.
DescriptionstrYes/YesThe Description of the part.
FootprintsArray[Dictionary]Yes/NoDictionaries with the fields “name”, “library” and “version” which describe which footprints this part uses.
GatesArray[Gate]Yes/NoThe list of gates that belong to this part.
IsAssociatedPartboolYes/NoSpecifies whether this item is an associated part.
IsConnectorboolYes/NoSpecifies whether this item is a connector part.
IsPcbOnlyboolYes/NoSpecifies whether this item is a PCB-only part.
IsScmOnlyboolYes/NoSpecifies whether this item is a schematic-only part.
NameStemstrYes/YesThe default name stem of the part.
PartRepsArray[PartRep]Yes/NoThe list of part representations associated with this part.
PinCountintYes/YesThe total number of pins on the part. Changing the pin count will remove all current footprints on this part.
PinsArray[PartPin]Yes/NoThe list of part pins that belong to this part.

Methods

NameReturnsArguments
AddFootprintFromLibraryboolfootprintName : str
libraryName : str
AddGateboolsymbolPath : str
AddGateFromLibraryboolsymbolName : str
libraryName : str
Exportnonedirectory : str

Property Details

AssociatedParts

Type: Array[AssociatedPart]

The list of AssociatedPart items that belong to this Part.


DefaultFootprintName

Type: str

The name of the default footprint to use for this part.


Description

Type: str

The Description of the part.


Footprints

Type: Array[Dictionary]

Dictionaries with the fields “name”, “library” and “version” which describe which footprints this part uses.


Gates

Type: Array[Gate]

The list of gates that belong to this part.


IsAssociatedPart

Type: bool

Specifies whether this item is an associated part.


IsConnector

Type: bool

Specifies whether this item is a connector part.


IsPcbOnly

Type: bool

Specifies whether this item is a PCB-only part.


IsScmOnly

Type: bool

Specifies whether this item is a schematic-only part.


NameStem

Type: str

The default name stem of the part.


PartReps

Type: Array[PartRep]

The list of part representations associated with this part.


PinCount

Type: int

The total number of pins on the part. Changing the pin count will remove all current footprints on this part.


Pins

Type: Array[PartPin]

The list of part pins that belong to this part.

Method Details

AddFootprintFromLibrary

Add a footprint to this part. The footprint must have the same pin count as this part.

Returns bool.

Licences required: Scripting Advanced Features.

Arguments:

  • footprintName : str
  • libraryName : str

AddGate

Add a gate to this part.

Returns bool.

Licences required: Scripting Advanced Features.

Arguments:

  • symbolPath : str

AddGateFromLibrary

Add a gate to this part.

Returns bool.

Licences required: Scripting Advanced Features.

Arguments:

  • symbolName : str
  • libraryName : str

Export

Export this part as a part design to the specified directory.

Licences required: Scripting Advanced Features.

Arguments:

  • directory : str