|
KiCad PCB EDA Suite
|
#include <wx/string.h>Go to the source code of this file.
Functions | |
| FOOTPRINT * | LoadFootprintFromProject (BOARD *aBoard, const LIB_ID &aFootprintId, bool aKeepUuid=false) |
| Load a footprint from the project library table and apply board default settings. | |
| void | LoadNetlistFootprints (BOARD *aBoard, NETLIST &aNetlist, REPORTER &aReporter) |
| Load the footprints for each #SCH_COMPONENT in aNetlist from the list of libraries. | |
| FOOTPRINT * LoadFootprintFromProject | ( | BOARD * | aBoard, |
| const LIB_ID & | aFootprintId, | ||
| bool | aKeepUuid = false ) |
Load a footprint from the project library table and apply board default settings.
Definition at line 25 of file pcb_netlist_utils.cpp.
References FOOTPRINT::ApplyDefaultSettings(), FOOTPRINT::ClearAllNets(), PROJECT_PCB::FootprintLibAdapter(), BOARD::GetDesignSettings(), BOARD::IsFootprintHolder(), FOOTPRINT_LIBRARY_ADAPTER::LoadFootprintWithOptionalNickname(), BOARD_DESIGN_SETTINGS::m_StyleFPBarcodes, BOARD_DESIGN_SETTINGS::m_StyleFPDimensions, BOARD_DESIGN_SETTINGS::m_StyleFPFields, BOARD_DESIGN_SETTINGS::m_StyleFPShapes, and BOARD_DESIGN_SETTINGS::m_StyleFPText.
Referenced by BOARD_NETLIST_UPDATER::addNewFootprint(), PCB_BASE_FRAME::LoadFootprint(), LoadNetlistFootprints(), and BOARD_NETLIST_UPDATER::replaceFootprint().
Load the footprints for each #SCH_COMPONENT in aNetlist from the list of libraries.
| aNetlist | is the netlist of components to load the footprints into. |
| aReporter | is the REPORTER object to report to. |
| IO_ERROR | if an I/O error occurs or a PARSE_ERROR if a file parsing error occurs while reading footprint library files. |
Definition at line 58 of file pcb_netlist_utils.cpp.
References _, LIBRARY_MANAGER_ADAPTER::AsyncLoad(), LIBRARY_MANAGER_ADAPTER::BlockUntilLoaded(), BOARD::FindFootprintByPath(), BOARD::FindFootprintByReference(), FOOTPRINT, PROJECT_PCB::FootprintLibAdapter(), LIB_ID::Format(), NETLIST::GetComponent(), NETLIST::GetCount(), COMPONENT::GetFPID(), FOOTPRINT::GetFPID(), COMPONENT::GetKIIDs(), LIB_ID::GetLibItemName(), COMPONENT::GetPath(), COMPONENT::GetReference(), NETLIST::GetReplaceFootprints(), NETLIST::IsEmpty(), NETLIST::IsFindByTimeStamp(), LIB_ID::IsLegacy(), LoadFootprintFromProject(), path, REPORTER::Report(), BOARD_ITEM::ResetUuidDirect(), LIBRARY_MANAGER_ADAPTER::Rows(), RPT_SEVERITY_ERROR, RPT_SEVERITY_WARNING, COMPONENT::SetFootprint(), UTF8::size(), NETLIST::SortByFPID(), and UTF8::wx_str().
Referenced by HEADLESS_PCB_CONTEXT::ReadNetlistFromFile(), and PCB_EDIT_FRAME::ReadNetlistFromFile().