KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_board_statistics.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2019 Alexander Shuklin, [email protected]
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25
27#include <board_statistics.h>
28
29#include <wx/filedlg.h>
30
31#include <kiplatform/ui.h>
32#include <confirm.h>
33#include <pad.h>
34#include <macros.h>
35#include <string_utils.h>
37#include <widgets/wx_grid.h>
39#include <algorithm>
40
41
42#define COL_LABEL 0
43#define COL_AMOUNT 1
44
45// Defines for components view
46#define ROW_LABEL 0
47#define COL_FRONT_SIDE 1
48#define COL_BOTTOM_SIDE 2
49#define COL_TOTAL 3
50
51// Defines for board view
52#define ROW_BOARD_DIMS 0
53#define ROW_BOARD_AREA 1
54#define ROW_FRONT_COPPER_AREA 2
55#define ROW_BACK_COPPER_AREA 3
56#define ROW_MIN_CLEARANCE 4
57#define ROW_MIN_TRACK_WIDTH 5
58#define ROW_MIN_DRILL_DIAMETER 6
59#define ROW_BOARD_THICKNESS 7
60#define ROW_FOOTPRINT_COURTYARD_FRONT_AREA 8
61#define ROW_FRONT_COMPONENT_DENSITY 9
62#define ROW_FOOTPRINT_COURTYARD_BACK_AREA 10
63#define ROW_BACK_COMPONENT_DENSITY 11
64
65
70{
78
79 // Flags to remember last checkboxes state
83
84 // Variables to save last report file name and folder
85 bool saveReportInitialized; // true after the 3 next string are initialized
86 wxString saveReportFolder; // last report folder
87 wxString saveReportName; // last report filename
88 wxString m_project; // name of the project used to create the last report
89 // used to reinit last state after a project change
90};
91
92
94
96 DIALOG_BOARD_STATISTICS_BASE( aParentFrame ),
97 m_frame( aParentFrame ),
100{
101 m_gridDrills->Connect( wxEVT_GRID_COL_SORT,
102 wxGridEventHandler( DIALOG_BOARD_STATISTICS::drillGridSort ),
103 nullptr, this );
104
105 m_checkBoxExcludeComponentsNoPins->SetValue( s_savedDialogState.excludeNoPins );
106 m_checkBoxSubtractHoles->SetValue( s_savedDialogState.subtractHoles );
107 m_checkBoxSubtractHolesFromCopper->SetValue( s_savedDialogState.subtractHolesFromCopper );
108
109 wxFont labelFont = KIUI::GetSmallInfoFont( this );
110 m_componentsLabel->SetFont( labelFont );
111 m_boardLabel->SetFont( labelFont );
112 m_padsLabel->SetFont( labelFont );
113 m_viasLabel->SetFont( labelFont );
114
115 // Make labels for grids
116 m_gridComponents->SetCellValue( ROW_LABEL, COL_FRONT_SIDE, _( "Front Side" ) );
117 m_gridComponents->SetCellValue( ROW_LABEL, COL_BOTTOM_SIDE, _( "Back Side" ) );
118 m_gridComponents->SetCellValue( ROW_LABEL, COL_TOTAL, _( "Total" ) );
119
120 wxFont headingFont = KIUI::GetStatusFont( this );
121
122 for( int col = COL_AMOUNT; col < m_gridComponents->GetNumberCols(); col++ )
123 m_gridComponents->SetCellFont( ROW_LABEL, col, headingFont );
124
125 m_gridBoard->SetCellValue( ROW_BOARD_DIMS, COL_LABEL, _( "Dimensions:" ) );
126 m_gridBoard->SetCellValue( ROW_BOARD_AREA, COL_LABEL, _( "Area:" ) );
127 m_gridBoard->SetCellValue( ROW_FRONT_COPPER_AREA, COL_LABEL, _( "Front copper area:" ) );
128 m_gridBoard->SetCellValue( ROW_BACK_COPPER_AREA, COL_LABEL, _( "Back copper area:" ) );
129 m_gridBoard->SetCellValue( ROW_MIN_CLEARANCE, COL_LABEL, _( "Min track clearance:" ) );
130 m_gridBoard->SetCellValue( ROW_MIN_TRACK_WIDTH, COL_LABEL, _( "Min track width:" ) );
131 m_gridBoard->SetCellValue( ROW_MIN_DRILL_DIAMETER, COL_LABEL, _( "Min drill diameter:" ) );
132 m_gridBoard->SetCellValue( ROW_BOARD_THICKNESS, COL_LABEL, _( "Board stackup thickness:" ) );
133 m_gridBoard->SetCellValue( ROW_FOOTPRINT_COURTYARD_FRONT_AREA, COL_LABEL, _( "Front footprint area:" ) );
134 m_gridBoard->SetCellValue( ROW_FRONT_COMPONENT_DENSITY, COL_LABEL, _( "Front footprint density:" ) );
135 m_gridBoard->SetCellValue( ROW_FOOTPRINT_COURTYARD_BACK_AREA, COL_LABEL, _( "Back footprint area:" ) );
136 m_gridBoard->SetCellValue( ROW_BACK_COMPONENT_DENSITY, COL_LABEL, _( "Back footprint density:" ) );
137
139 {
140 // Remove wxgrid's selection boxes
141 grid->SetCellHighlightPenWidth( 0 );
142 grid->SetColMinimalAcceptableWidth( 80 );
143
144 for( int row = 0; row < grid->GetNumberRows(); row++ )
145 {
146 grid->SetCellAlignment( row, COL_LABEL, wxALIGN_LEFT, wxALIGN_CENTRE );
147
148 for( int col = COL_AMOUNT; col < grid->GetNumberCols(); col++ )
149 grid->SetCellAlignment( row, col, wxALIGN_RIGHT, wxALIGN_CENTER );
150 }
151 }
152
153 wxFileName fn = m_frame->GetBoard()->GetFileName();
154
155 if( !s_savedDialogState.saveReportInitialized
156 || s_savedDialogState.m_project != Prj().GetProjectFullName() )
157 {
158 fn.SetName( fn.GetName() + wxT( "_report" ) );
159 fn.SetExt( wxT( "txt" ) );
160 s_savedDialogState.saveReportName = fn.GetFullName();
161 s_savedDialogState.saveReportFolder = wxPathOnly( Prj().GetProjectFullName() );
163 s_savedDialogState.saveReportInitialized = true;
164 }
165
166 // The wxStdDialogButtonSizer wxID_CANCLE button is in fact a close button
167 // Nothing to cancel:
168 m_sdbControlSizerCancel->SetLabel( _( "Close" ) );
169}
170
171
173{
175
176 int appendRows = static_cast<int>( m_statsData.footprintEntries.size() ) + 2 - m_gridComponents->GetNumberRows();
177
178 if( appendRows > 0 )
179 m_gridComponents->AppendRows( appendRows );
180
181 appendRows = static_cast<int>( m_statsData.padEntries.size() ) + 1
182 + static_cast<int>( m_statsData.padPropertyEntries.size() ) - m_gridPads->GetNumberRows();
183
184 if( appendRows > 0 )
185 m_gridPads->AppendRows( appendRows );
186
187 appendRows = static_cast<int>( m_statsData.viaEntries.size() ) + 1 - m_gridVias->GetNumberRows();
188
189 if( appendRows > 0 )
190 m_gridVias->AppendRows( appendRows );
191}
192
193
195{
199
200 Layout();
201 m_drillsPanel->Layout();
202
203 m_gridDrills->AutoSizeColumns();
206
207 // Add space for the vertical scrollbar, so that it won't overlap with the cells.
208 m_gridDrills->SetMinSize( wxSize( m_gridDrills->GetEffectiveMinSize().x
209 + wxSystemSettings::GetMetric( wxSYS_VSCROLL_X ),
210 60 ) );
211
213
215 return true;
216}
217
218
220{
225
226 ComputeBoardStatistics( m_frame->GetBoard(), options, m_statsData );
227
228 m_gridDrills->ClearRows();
229
230 if( !m_statsData.drillEntries.empty() )
231 m_gridDrills->AppendRows( static_cast<int>( m_statsData.drillEntries.size() ) );
232}
233
234
235static wxString formatCount( int aCount )
236{
237 return wxString::Format( wxT( "%i" ), aCount );
238};
239
240
242{
243 int totalPads = 0;
244 int row = 0;
245
246 for( const BOARD_STATISTICS_INFO_ENTRY<PAD_ATTRIB>& line : m_statsData.padEntries )
247 {
248 m_gridPads->SetCellValue( row, COL_LABEL, line.title );
249 m_gridPads->SetCellValue( row, COL_AMOUNT, formatCount( line.quantity ) );
250 totalPads += line.quantity;
251 row++;
252 }
253
254 m_gridPads->SetCellValue( row, COL_LABEL, _( "Total:" ) );
255 m_gridPads->SetCellValue( row, COL_AMOUNT, formatCount( totalPads ) );
256 row++;
257
258 for( const BOARD_STATISTICS_INFO_ENTRY<PAD_PROP>& line : m_statsData.padPropertyEntries )
259 {
260 m_gridPads->SetCellValue( row, COL_LABEL, line.title );
261 m_gridPads->SetCellValue( row, COL_AMOUNT, formatCount( line.quantity ) );
262 row++;
263 }
264
265 int totalVias = 0;
266 row = 0;
267
268 for( const BOARD_STATISTICS_INFO_ENTRY<VIATYPE>& line : m_statsData.viaEntries )
269 {
270 m_gridVias->SetCellValue( row, COL_LABEL, line.title );
271 m_gridVias->SetCellValue( row, COL_AMOUNT, formatCount( line.quantity ) );
272 totalVias += line.quantity;
273 row++;
274 }
275
276 m_gridVias->SetCellValue( row, COL_LABEL, _( "Total:" ) );
277 m_gridVias->SetCellValue( row, COL_AMOUNT, formatCount( totalVias ) );
278
279
280 int totalFront = 0;
281 int totalBack = 0;
282
283 // We don't use row 0, as there labels are
284 row = 1;
285
286 for( const BOARD_STATISTICS_FP_ENTRY& line : m_statsData.footprintEntries )
287 {
288 m_gridComponents->SetCellValue( row, COL_LABEL, line.title );
289 m_gridComponents->SetCellValue( row, COL_FRONT_SIDE, formatCount( line.frontCount ) );
290 m_gridComponents->SetCellValue( row, COL_BOTTOM_SIDE, formatCount( line.backCount ) );
291 m_gridComponents->SetCellValue( row, 3, formatCount( line.frontCount + line.backCount ) );
292 totalFront += line.frontCount;
293 totalBack += line.backCount;
294 row++;
295 }
296
297 m_gridComponents->SetCellValue( row, COL_LABEL, _( "Total:" ) );
298 m_gridComponents->SetCellValue( row, COL_FRONT_SIDE, formatCount( totalFront ) );
299 m_gridComponents->SetCellValue( row, COL_BOTTOM_SIDE, formatCount( totalBack ) );
300 m_gridComponents->SetCellValue( row, COL_TOTAL, formatCount( totalFront + totalBack ) );
301
302 if( m_statsData.hasOutline )
303 {
304 m_gridBoard->SetCellValue( ROW_BOARD_DIMS, COL_AMOUNT,
305 wxString::Format( wxT( "%s x %s" ),
306 m_frame->MessageTextFromValue( m_statsData.boardWidth, false ),
307 m_frame->MessageTextFromValue( m_statsData.boardHeight, true ) ) );
308 m_gridBoard->SetCellValue( ROW_BOARD_AREA, COL_AMOUNT,
309 m_frame->MessageTextFromValue( m_statsData.boardArea, true, EDA_DATA_TYPE::AREA ) );
310
312 wxString::Format( "%.2f %%", m_statsData.frontFootprintDensity ) );
313
315 wxString::Format( "%.2f %%", m_statsData.backFootprintDensity ) );
316 }
317 else
318 {
319 m_gridBoard->SetCellValue( ROW_BOARD_DIMS, COL_AMOUNT, _( "unknown" ) );
320 m_gridBoard->SetCellValue( ROW_BOARD_AREA, COL_AMOUNT, _( "unknown" ) );
321 }
322
323 m_gridBoard->SetCellValue(
325 m_frame->MessageTextFromValue( m_statsData.frontFootprintCourtyardArea, true, EDA_DATA_TYPE::AREA ) );
326
327 m_gridBoard->SetCellValue(
329 m_frame->MessageTextFromValue( m_statsData.backFootprintCourtyardArea, true, EDA_DATA_TYPE::AREA ) );
330
331 m_gridBoard->SetCellValue(
333 m_frame->MessageTextFromValue( m_statsData.frontCopperArea, true, EDA_DATA_TYPE::AREA ) );
335 m_frame->MessageTextFromValue( m_statsData.backCopperArea, true, EDA_DATA_TYPE::AREA ) );
336
337 m_gridBoard->SetCellValue(
339 m_frame->MessageTextFromValue( m_statsData.minClearanceTrackToTrack, true, EDA_DATA_TYPE::DISTANCE ) );
340
341 m_gridBoard->SetCellValue(
343 m_frame->MessageTextFromValue( m_statsData.minTrackWidth, true, EDA_DATA_TYPE::DISTANCE ) );
344
345 m_gridBoard->SetCellValue(
347 m_frame->MessageTextFromValue( m_statsData.boardThickness, true, EDA_DATA_TYPE::DISTANCE ) );
348
350
351 m_gridBoard->SetCellValue(
353 m_frame->MessageTextFromValue( m_statsData.minDrillSize, true, EDA_DATA_TYPE::DISTANCE ) );
354
355 m_gridComponents->AutoSize();
356 m_gridPads->AutoSize();
357 m_gridBoard->AutoSize();
358 m_gridVias->AutoSize();
359
361}
362
363
365{
366 BOARD* board = m_frame->GetBoard();
367 int row = 0;
368
369 for( const DRILL_LINE_ITEM& line : m_statsData.drillEntries )
370 {
371 wxString shapeStr;
372 wxString startLayerStr;
373 wxString stopLayerStr;
374
375 switch( line.shape )
376 {
377 case PAD_DRILL_SHAPE::CIRCLE: shapeStr = _( "Round" ); break;
378 case PAD_DRILL_SHAPE::OBLONG: shapeStr = _( "Slot" ); break;
379 default: shapeStr = _( "???" ); break;
380 }
381
382 if( line.startLayer == UNDEFINED_LAYER )
383 startLayerStr = _( "N/A" );
384 else
385 startLayerStr = board->GetLayerName( line.startLayer );
386
387 if( line.stopLayer == UNDEFINED_LAYER )
388 stopLayerStr = _( "N/A" );
389 else
390 stopLayerStr = board->GetLayerName( line.stopLayer );
391
392 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_COUNT, formatCount( line.m_Qty ) );
393 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_SHAPE, shapeStr );
394 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_X_SIZE, m_frame->MessageTextFromValue( line.xSize ) );
395 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_Y_SIZE, m_frame->MessageTextFromValue( line.ySize ) );
396 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_PLATED, line.isPlated ? _( "PTH" ) : _( "NPTH" ) );
397 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_VIA_PAD, line.isPad ? _( "Pad" ) : _( "Via" ) );
398 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_START_LAYER, startLayerStr );
399 m_gridDrills->SetCellValue( row, DRILL_LINE_ITEM::COL_STOP_LAYER, stopLayerStr );
400
401 row++;
402 }
403}
404
405
407{
408 wxGridUpdateLocker deferRepaintsTillLeavingScope( m_gridDrills );
409
410 m_gridDrills->EnsureColLabelsVisible();
411
412 double remainingWidth = KIPLATFORM::UI::GetUnobscuredSize( m_gridDrills ).x;
413
414 // Find the total current width
415 for( int i = 0; i < m_gridDrills->GetNumberCols(); i++ )
416 {
418 remainingWidth -= m_gridDrills->GetColSize( i );
419 }
420
421 double scalingFactor = std::max( 1.0,
423 int startLayerColWidth = static_cast<int>( m_startLayerColInitialSize * scalingFactor );
424 int stopLayerColWidth = static_cast<int>( m_stopLayerColInitialSize * scalingFactor );
425
426 m_gridDrills->SetColSize( DRILL_LINE_ITEM::COL_START_LAYER, startLayerColWidth );
427 m_gridDrills->SetColSize( DRILL_LINE_ITEM::COL_STOP_LAYER, stopLayerColWidth );
428}
429
430
431void DIALOG_BOARD_STATISTICS::checkboxClicked( wxCommandEvent& aEvent )
432{
433 s_savedDialogState.excludeNoPins = m_checkBoxExcludeComponentsNoPins->GetValue();
434 s_savedDialogState.subtractHoles = m_checkBoxSubtractHoles->GetValue();
435 s_savedDialogState.subtractHolesFromCopper = m_checkBoxSubtractHolesFromCopper->GetValue();
439 Layout();
440 m_drillsPanel->Layout();
441}
442
443
444void DIALOG_BOARD_STATISTICS::saveReportClicked( wxCommandEvent& aEvent )
445{
446 FILE* outFile;
447 wxString msg;
448 wxString boardName;
449
450 wxFileName fn = m_frame->GetBoard()->GetFileName();
451 boardName = fn.GetName();
452 wxFileDialog dlg( this, _( "Save Report File" ), s_savedDialogState.saveReportFolder,
454 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
455
456 if( dlg.ShowModal() == wxID_CANCEL )
457 return;
458
459 s_savedDialogState.saveReportFolder = wxPathOnly( dlg.GetPath() );
460 s_savedDialogState.saveReportName = dlg.GetFilename();
461
462 outFile = wxFopen( dlg.GetPath(), wxT( "wt" ) );
463
464 if( outFile == nullptr )
465 {
466 msg.Printf( _( "Failed to create file '%s'." ), dlg.GetPath() );
467 DisplayErrorMessage( this, msg );
468 return;
469 }
470
471 const UNITS_PROVIDER& unitsProvider = *m_frame;
472 wxString report = FormatBoardStatisticsReport( m_statsData, m_frame->GetBoard(), unitsProvider,
473 Prj().GetProjectName(), boardName );
474
475 if( fprintf( outFile, "%s", TO_UTF8( report ) ) < 0 )
476 {
477 msg.Printf( _( "Error writing file '%s'." ), dlg.GetPath() );
478 DisplayErrorMessage( this, msg );
479 }
480
481 fclose( outFile );
482}
483
484
485void DIALOG_BOARD_STATISTICS::drillGridSize( wxSizeEvent& aEvent )
486{
487 aEvent.Skip();
489}
490
491void DIALOG_BOARD_STATISTICS::drillGridSort( wxGridEvent& aEvent )
492{
493 DRILL_LINE_ITEM::COL_ID colId = static_cast<DRILL_LINE_ITEM::COL_ID>( aEvent.GetCol() );
494 bool ascending = !( m_gridDrills->IsSortingBy( colId )
495 && m_gridDrills->IsSortOrderAscending() );
496
497 sort( m_statsData.drillEntries.begin(), m_statsData.drillEntries.end(),
498 DRILL_LINE_ITEM::COMPARE( colId, ascending ) );
499
501}
502
503
void ComputeBoardStatistics(BOARD *aBoard, const BOARD_STATISTICS_OPTIONS &aOptions, BOARD_STATISTICS_DATA &aData)
static wxString formatCount(int aCount)
wxString FormatBoardStatisticsReport(const BOARD_STATISTICS_DATA &aData, BOARD *aBoard, const UNITS_PROVIDER &aUnitsProvider, const wxString &aProjectName, const wxString &aBoardName)
void InitializeBoardStatisticsData(BOARD_STATISTICS_DATA &aData)
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:322
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
Definition board.cpp:715
DIALOG_BOARD_STATISTICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Board Statistics"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void checkboxClicked(wxCommandEvent &aEvent) override
Save board statistics to a file.
int m_startLayerColInitialSize
Width of the start layer column as calculated by the wxWidgets autosizing algorithm.
void updateWidgets()
Update drills grid.
void saveReportClicked(wxCommandEvent &aEvent) override
~DIALOG_BOARD_STATISTICS()
Get data from the PCB board and print it to dialog.
int m_stopLayerColInitialSize
Width of the stop layer column.
DIALOG_BOARD_STATISTICS(PCB_EDIT_FRAME *aParentFrame)
void drillGridSort(wxGridEvent &aEvent)
void refreshItemsTypes()
< Function to fill up all items types to be shown in the dialog.
void drillGridSize(wxSizeEvent &aEvent) override
BOARD_STATISTICS_DATA m_statsData
void getDataFromPCB()
Apply data to dialog widgets.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
The main frame for Pcbnew.
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
Definition project.cpp:161
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
Definition confirm.cpp:202
This file is part of the common library.
static DIALOG_BOARD_STATISTICS_SAVED_STATE s_savedDialogState
#define ROW_FOOTPRINT_COURTYARD_FRONT_AREA
#define ROW_BOARD_AREA
#define ROW_BOARD_THICKNESS
#define COL_AMOUNT
#define ROW_FRONT_COMPONENT_DENSITY
#define ROW_LABEL
#define ROW_BACK_COMPONENT_DENSITY
#define COL_BOTTOM_SIDE
#define ROW_BACK_COPPER_AREA
#define ROW_MIN_TRACK_WIDTH
#define COL_LABEL
#define COL_TOTAL
#define ROW_MIN_DRILL_DIAMETER
#define ROW_FRONT_COPPER_AREA
#define ROW_BOARD_DIMS
static wxString formatCount(int aCount)
#define COL_FRONT_SIDE
#define ROW_MIN_CLEARANCE
#define ROW_FOOTPRINT_COURTYARD_BACK_AREA
#define _(s)
static wxString TextFileWildcard()
@ UNDEFINED_LAYER
Definition layer_ids.h:61
This file contains miscellaneous commonly used macros and functions.
wxSize GetUnobscuredSize(const wxWindow *aWindow)
Tries to determine the size of the viewport of a scrollable widget (wxDataViewCtrl,...
Definition wxgtk/ui.cpp:264
KICOMMON_API wxFont GetStatusFont(wxWindow *aWindow)
KICOMMON_API wxFont GetSmallInfoFont(wxWindow *aWindow)
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
int quantity
wxString title
PCB_LAYER_ID stopLayer
PAD_DRILL_SHAPE shape
PCB_LAYER_ID startLayer
Definition of file extensions used in Kicad.