KiCad PCB EDA Suite
|
The ASCII format of the kicad place file is: More...
#include <place_file_exporter.h>
Public Member Functions | |
PLACE_FILE_EXPORTER (BOARD *aBoard, bool aUnitsMM, bool aOnlySMD, bool aExcludeAllTH, bool aExcludeDNP, bool aTopSide, bool aBottomSide, bool aFormatCSV, bool aUseAuxOrigin, bool aNegateBottomX) | |
Create a PLACE_FILE_EXPORTER. | |
std::string | GenPositionData () |
build a string filled with the position data | |
std::string | GenReportData () |
build a string filled with the pad report data This report does not used options aForceSmdItems,aTopSide, aBottomSide and aFormatCSV. | |
int | GetFootprintCount () |
Static Public Member Functions | |
static std::string | GetFrontSideName () |
static std::string | GetBackSideName () |
Private Attributes | |
BOARD * | m_board |
bool | m_unitsMM |
bool | m_onlySMD |
bool | m_excludeDNP |
bool | m_excludeAllTH |
int | m_side |
bool | m_formatCSV |
bool | m_negateBottomX |
int | m_fpCount |
VECTOR2I | m_place_Offset |
The ASCII format of the kicad place file is:
or
or
or
C123 0,1uF/50V SM0603 1.6024 -2.6280 180.0 Front C124 0,1uF/50V SM0603 1.6063 -2.7579 180.0 Front C125 0,1uF/50V SM0603 1.6010 -2.8310 180.0 Front
Definition at line 51 of file place_file_exporter.h.
PLACE_FILE_EXPORTER::PLACE_FILE_EXPORTER | ( | BOARD * | aBoard, |
bool | aUnitsMM, | ||
bool | aOnlySMD, | ||
bool | aExcludeAllTH, | ||
bool | aExcludeDNP, | ||
bool | aTopSide, | ||
bool | aBottomSide, | ||
bool | aFormatCSV, | ||
bool | aUseAuxOrigin, | ||
bool | aNegateBottomX | ||
) |
Create a PLACE_FILE_EXPORTER.
aBoard | is the board |
aUnitsMM | is the unit option: true foo mm, false for inches |
aOnlySMD | true to force only footprints flagged smd to be in the list |
aExcludeAllTH | true to include only footprints with no TH pads no matter the footprint flag |
aExcludeDNP | true to exclude footprints flagged DNP |
aTopSide | true to generate top side info |
aBottomSide | true to generate bottom side info |
aFormatCSV | true to generate a csv format info, false to generate a ascii info |
aNegateBottomX | true to negate X coordinates for bottom side of the placement file |
aUseAuxOrigin | true to use auxiliary axis as an origin for the position data |
Definition at line 76 of file place_file_exporter.cpp.
References BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetDesignSettings(), m_board, m_excludeAllTH, m_excludeDNP, m_formatCSV, m_fpCount, m_negateBottomX, m_onlySMD, m_place_Offset, m_side, m_unitsMM, PCB_BACK_SIDE, PCB_BOTH_SIDES, PCB_FRONT_SIDE, and PCB_NO_SIDE.
std::string PLACE_FILE_EXPORTER::GenPositionData | ( | ) |
build a string filled with the position data
Definition at line 107 of file place_file_exporter.cpp.
References B_Cu, conv_unit_inch, conv_unit_mm, F_Cu, BOARD::Footprints(), FP_DNP, FP_EXCLUDE_FROM_POS_FILES, FP_SMD, GetBackSideName(), GetBuildVersion(), FOOTPRINT::GetFPID(), GetFrontSideName(), GetISO8601CurrentDateTime(), LIB_ID::GetLibItemName(), UTF8::length(), m_board, m_excludeAllTH, m_excludeDNP, LIST_MOD::m_Footprint, m_formatCSV, m_fpCount, LIST_MOD::m_Layer, m_negateBottomX, m_onlySMD, m_place_Offset, LIST_MOD::m_Reference, m_side, m_unitsMM, LIST_MOD::m_Value, PCB_BACK_SIDE, PCB_BOTH_SIDES, PCB_FRONT_SIDE, sortFPlist(), TO_UTF8, unit_text_inch, unit_text_mm, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles(), PCB_EDIT_FRAME::DoGenFootprintsPositionFile(), and PCBNEW_JOBS_HANDLER::JobExportPos().
std::string PLACE_FILE_EXPORTER::GenReportData | ( | ) |
build a string filled with the pad report data This report does not used options aForceSmdItems,aTopSide, aBottomSide and aFormatCSV.
All footprints and their pads on board are reported.
Definition at line 287 of file place_file_exporter.cpp.
References PADSTACK::ALL_LAYERS, B_Cu, BOARD::ComputeBoundingBox(), conv_unit_inch, conv_unit_mm, F_Cu, BOARD::Footprints(), FP_SMD, FP_THROUGH_HOLE, BOX2< Vec >::GetBottom(), GetBuildVersion(), GetISO8601CurrentDateTime(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_board, m_place_Offset, m_unitsMM, pad, TO_UTF8, unit_text_inch, unit_text_mm, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PCB_EDIT_FRAME::DoGenFootprintsReport().
|
inlinestatic |
Definition at line 93 of file place_file_exporter.h.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles(), and GenPositionData().
|
inline |
Definition at line 88 of file place_file_exporter.h.
References m_fpCount.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles(), and PCB_EDIT_FRAME::DoGenFootprintsPositionFile().
|
inlinestatic |
Definition at line 92 of file place_file_exporter.h.
Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles(), and GenPositionData().
|
private |
Definition at line 96 of file place_file_exporter.h.
Referenced by GenPositionData(), GenReportData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 100 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 99 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 102 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 104 of file place_file_exporter.h.
Referenced by GenPositionData(), GetFootprintCount(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 103 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 98 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 105 of file place_file_exporter.h.
Referenced by GenPositionData(), GenReportData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 101 of file place_file_exporter.h.
Referenced by GenPositionData(), and PLACE_FILE_EXPORTER().
|
private |
Definition at line 97 of file place_file_exporter.h.
Referenced by GenPositionData(), GenReportData(), and PLACE_FILE_EXPORTER().