KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
pcbnew.PCB_IO Class Reference
Inheritance diagram for pcbnew.PCB_IO:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, *args, **kwargs)
 
def GetBoardFileDesc (self)
 
def CanReadBoard (self, aFileName)
 
def CanReadFootprint (self, aFileName)
 
def SetQueryUserCallback (self, aCallback)
 
def LoadBoard (self, aFileName, aAppendToMe, aProperties=None, aProject=None)
 
def GetImportedCachedLibraryFootprints (self)
 
def SaveBoard (self, aFileName, aBoard, aProperties=None)
 
def FootprintEnumerate (self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
 
def GetLibraryTimestamp (self, aLibraryPath)
 
def PrefetchLib (self, aLibraryPath, aProperties=None)
 
def ImportFootprint (self, aFootprintPath, aFootprintNameOut, aProperties=None)
 
def FootprintLoad (self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
 
def GetEnumeratedFootprint (self, aLibraryPath, aFootprintName, aProperties=None)
 
def FootprintExists (self, aLibraryPath, aFootprintName, aProperties=None)
 
def FootprintSave (self, aLibraryPath, aFootprint, aProperties=None)
 
def FootprintDelete (self, aLibraryPath, aFootprintName, aProperties=None)
 
def GetLibraryOptions (self, aListToAppendTo)
 
def footprintPyEnumerate (self, aLibraryPath, aExitOnError)
 
def FootprintEnumerate (self, libname)
 
def FootprintLibCreate (self, aLibraryPath, aProperties=None)
 
def FootprintLibDelete (self, aLibraryPath, aProperties=None)
 
def IsFootprintLibWritable (self, aLibraryPath)
 

Properties

property thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Proxy of C++ PCB_IO class.

Definition at line 7951 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.PCB_IO.__init__ (   self,
args,
**  kwargs 
)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 7956 of file pcbnew.py.

Member Function Documentation

◆ CanReadBoard()

def pcbnew.PCB_IO.CanReadBoard (   self,
  aFileName 
)
CanReadBoard(PCB_IO self, wxString aFileName) -> bool

Definition at line 7964 of file pcbnew.py.

◆ CanReadFootprint()

def pcbnew.PCB_IO.CanReadFootprint (   self,
  aFileName 
)
CanReadFootprint(PCB_IO self, wxString aFileName) -> bool

Definition at line 7968 of file pcbnew.py.

◆ FootprintDelete()

def pcbnew.PCB_IO.FootprintDelete (   self,
  aLibraryPath,
  aFootprintName,
  aProperties = None 
)
FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8020 of file pcbnew.py.

◆ FootprintEnumerate() [1/2]

def pcbnew.PCB_IO.FootprintEnumerate (   self,
  aFootprintNames,
  aLibraryPath,
  aBestEfforts,
  aProperties = None 
)
FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 7988 of file pcbnew.py.

◆ FootprintEnumerate() [2/2]

def pcbnew.PCB_IO.FootprintEnumerate (   self,
  libname 
)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8033 of file pcbnew.py.

◆ FootprintExists()

def pcbnew.PCB_IO.FootprintExists (   self,
  aLibraryPath,
  aFootprintName,
  aProperties = None 
)
FootprintExists(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8012 of file pcbnew.py.

◆ FootprintLibCreate()

def pcbnew.PCB_IO.FootprintLibCreate (   self,
  aLibraryPath,
  aProperties = None 
)

Definition at line 8037 of file pcbnew.py.

◆ FootprintLibDelete()

def pcbnew.PCB_IO.FootprintLibDelete (   self,
  aLibraryPath,
  aProperties = None 
)

Definition at line 8041 of file pcbnew.py.

◆ FootprintLoad()

def pcbnew.PCB_IO.FootprintLoad (   self,
  aLibraryPath,
  aFootprintName,
  aKeepUUID = False,
  aProperties = None 
)
FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8004 of file pcbnew.py.

◆ footprintPyEnumerate()

def pcbnew.PCB_IO.footprintPyEnumerate (   self,
  aLibraryPath,
  aExitOnError 
)
footprintPyEnumerate(PCB_IO self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString

Definition at line 8029 of file pcbnew.py.

Here is the caller graph for this function:

◆ FootprintSave()

def pcbnew.PCB_IO.FootprintSave (   self,
  aLibraryPath,
  aFootprint,
  aProperties = None 
)
FootprintSave(PCB_IO self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8016 of file pcbnew.py.

◆ GetBoardFileDesc()

def pcbnew.PCB_IO.GetBoardFileDesc (   self)
GetBoardFileDesc(PCB_IO self) -> IO_BASE::IO_FILE_DESC const

Definition at line 7960 of file pcbnew.py.

◆ GetEnumeratedFootprint()

def pcbnew.PCB_IO.GetEnumeratedFootprint (   self,
  aLibraryPath,
  aFootprintName,
  aProperties = None 
)
GetEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8008 of file pcbnew.py.

◆ GetImportedCachedLibraryFootprints()

def pcbnew.PCB_IO.GetImportedCachedLibraryFootprints (   self)
GetImportedCachedLibraryFootprints(PCB_IO self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >

Definition at line 7980 of file pcbnew.py.

◆ GetLibraryOptions()

def pcbnew.PCB_IO.GetLibraryOptions (   self,
  aListToAppendTo 
)
GetLibraryOptions(PCB_IO self, STRING_UTF8_MAP * aListToAppendTo)

Definition at line 8024 of file pcbnew.py.

◆ GetLibraryTimestamp()

def pcbnew.PCB_IO.GetLibraryTimestamp (   self,
  aLibraryPath 
)
GetLibraryTimestamp(PCB_IO self, wxString aLibraryPath) -> long long

Definition at line 7992 of file pcbnew.py.

◆ ImportFootprint()

def pcbnew.PCB_IO.ImportFootprint (   self,
  aFootprintPath,
  aFootprintNameOut,
  aProperties = None 
)
ImportFootprint(PCB_IO self, wxString aFootprintPath, wxString aFootprintNameOut, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 8000 of file pcbnew.py.

◆ IsFootprintLibWritable()

def pcbnew.PCB_IO.IsFootprintLibWritable (   self,
  aLibraryPath 
)

Definition at line 8045 of file pcbnew.py.

◆ LoadBoard()

def pcbnew.PCB_IO.LoadBoard (   self,
  aFileName,
  aAppendToMe,
  aProperties = None,
  aProject = None 
)
LoadBoard(PCB_IO self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None) -> BOARD

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 7976 of file pcbnew.py.

◆ PrefetchLib()

def pcbnew.PCB_IO.PrefetchLib (   self,
  aLibraryPath,
  aProperties = None 
)
PrefetchLib(PCB_IO self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)

Definition at line 7996 of file pcbnew.py.

◆ SaveBoard()

def pcbnew.PCB_IO.SaveBoard (   self,
  aFileName,
  aBoard,
  aProperties = None 
)
SaveBoard(PCB_IO self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)

Reimplemented in pcbnew.PCB_IO_KICAD_SEXPR.

Definition at line 7984 of file pcbnew.py.

◆ SetQueryUserCallback()

def pcbnew.PCB_IO.SetQueryUserCallback (   self,
  aCallback 
)
SetQueryUserCallback(PCB_IO self, std::function< bool (wxString,int,wxString,wxString) > aCallback)

Definition at line 7972 of file pcbnew.py.

Property Documentation

◆ thisown

property pcbnew.PCB_IO.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 7954 of file pcbnew.py.


The documentation for this class was generated from the following file: