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
| Name | Type | Get/Set | Brief |
|---|---|---|---|
| AssociatedParts | Array[AssociatedPart] | Yes/No | The list of AssociatedPart items that belong to this Part. |
| DefaultFootprintName | str | Yes/Yes | The name of the default footprint to use for this part. |
| Description | str | Yes/Yes | The Description of the part. |
| Footprints | Array[Dictionary] | Yes/No | Dictionaries with the fields “name”, “library” and “version” which describe which footprints this part uses. |
| Gates | Array[Gate] | Yes/No | The list of gates that belong to this part. |
| IsAssociatedPart | bool | Yes/No | Specifies whether this item is an associated part. |
| IsConnector | bool | Yes/No | Specifies whether this item is a connector part. |
| IsPcbOnly | bool | Yes/No | Specifies whether this item is a PCB-only part. |
| IsScmOnly | bool | Yes/No | Specifies whether this item is a schematic-only part. |
| NameStem | str | Yes/Yes | The default name stem of the part. |
| PartReps | Array[PartRep] | Yes/No | The list of part representations associated with this part. |
| PinCount | int | Yes/Yes | The total number of pins on the part. Changing the pin count will remove all current footprints on this part. |
| Pins | Array[PartPin] | Yes/No | The list of part pins that belong to this part. |
Methods
| Name | Returns | Arguments |
|---|---|---|
| AddFootprintFromLibrary | bool | footprintName : strlibraryName : str |
| AddGate | bool | symbolPath : str |
| AddGateFromLibrary | bool | symbolName : strlibraryName : str |
| Export | none | directory : 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:strlibraryName: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:strlibraryName:str
Export
Export this part as a part design to the specified directory.
Licences required: Scripting Advanced Features.
Arguments:
directory:str