KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_gen_footprint_position.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) 2015-2023 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24/*
25 * 1 - create ASCII files for automatic placement of smd components
26 * 2 - create a footprint report (pos and footprint descr) (ascii file)
27 */
28
30#include <confirm.h>
31#include <pcb_edit_frame.h>
32#include <pcbnew_settings.h>
34#include <bitmaps.h>
35#include <reporter.h>
38#include <kiface_base.h>
44
45#include <wx/dirdlg.h>
46#include <wx/msgdlg.h>
47
48
51 m_editFrame( aEditFrame ),
52 m_job( nullptr )
53{
54 m_messagesPanel->SetFileName( Prj().GetProjectPath() + wxT( "report.txt" ) );
56 initDialog();
57
59 { { wxID_OK, _( "Generate Position File" ) }, { wxID_CANCEL, _( "Close" ) } } );
60
61 GetSizer()->SetSizeHints( this );
62 Centre();
63}
64
65
66
68 PCB_EDIT_FRAME* aEditFrame,
69 wxWindow* aParent ) :
71 m_editFrame( aEditFrame ),
72 m_job( aJob )
73{
74 m_messagesPanel->Hide();
75 initDialog();
76
77 SetupStandardButtons( { { wxID_OK, _( "Save" ) }, { wxID_CANCEL, _( "Close" ) } } );
78
79 GetSizer()->SetSizeHints( this );
80 Centre();
81}
82
83
85{
86 if( !m_job )
87 {
88 m_browseButton->SetBitmap( KiBitmapBundle( BITMAPS::small_folder ) );
89
90 PROJECT_FILE& projectFile = m_editFrame->Prj().GetProjectFile();
92
93 m_units = cfg->m_PlaceFile.units == 0 ? EDA_UNITS::INCHES : EDA_UNITS::MILLIMETRES;
94
95 // Output directory
97
98 // Update Options
99 m_radioBoxUnits->SetSelection( cfg->m_PlaceFile.units );
100 m_radioBoxFilesCount->SetSelection( cfg->m_PlaceFile.file_options );
101 m_rbFormat->SetSelection( cfg->m_PlaceFile.file_format );
104 m_onlySMD->SetValue( cfg->m_PlaceFile.only_SMD );
105 m_negateXcb->SetValue( cfg->m_PlaceFile.negate_xcoord );
106 m_excludeTH->SetValue( cfg->m_PlaceFile.exclude_TH );
107
108 // Update sizes and sizers:
109 m_messagesPanel->MsgPanelSetMinSize( wxSize( -1, 160 ) );
110 }
111 else
112 {
113 m_browseButton->Hide();
114
116 : EDA_UNITS::MILLIMETRES;
117
118
120
121 m_radioBoxUnits->SetSelection( static_cast<int>( m_job->m_units ) );
122 m_rbFormat->SetSelection( static_cast<int>( m_job->m_format ) );
125 m_onlySMD->SetValue( m_job->m_smdOnly );
126 m_negateXcb->SetValue( m_job->m_negateBottomX );
128 m_excludeDNP->SetValue( m_job->m_excludeDNP );
129
130 m_messagesPanel->Hide();
131 }
132
133
134 GetSizer()->SetSizeHints( this );
135}
136
137
139{
140 m_radioBoxUnits->Enable( m_rbFormat->GetSelection() != 2 );
141}
142
143
145{
146 m_radioBoxFilesCount->Enable( m_rbFormat->GetSelection() != 2 );
147}
148
149
151{
152 if( m_rbFormat->GetSelection() == 2 )
153 {
154 m_onlySMD->SetValue( false );
155 m_onlySMD->Enable( false );
156 }
157 else
158 {
159 m_onlySMD->Enable( true );
160 }
161}
162
163
165{
166 if( m_rbFormat->GetSelection() == 2 )
167 {
168 m_negateXcb->SetValue( false );
169 m_negateXcb->Enable( false );
170 }
171 else
172 {
173 m_negateXcb->Enable( true );
174 }
175}
176
178{
179 if( m_rbFormat->GetSelection() == 2 )
180 {
181 m_excludeTH->SetValue( false );
182 m_excludeTH->Enable( false );
183 }
184 else
185 {
186 m_excludeTH->Enable( true );
187 }
188}
189
190
192{
193 return m_radioBoxUnits->GetSelection() == 1;
194}
195
196
198{
199 return m_radioBoxFilesCount->GetSelection() == 1;
200}
201
202
204{
205 return m_onlySMD->GetValue();
206}
207
208
210{
211 return m_excludeTH->GetValue();
212}
213
214
216{
217 return m_excludeDNP->GetValue();
218}
219
220
222{
223 m_cbIncludeBoardEdge->Enable( m_rbFormat->GetSelection() == 2 );
224}
225
226
228{
229 // Build the absolute path of current output directory to preselect it in the file browser.
230 wxString path = ExpandEnvVarSubstitutions( m_outputDirectoryName->GetValue(), &Prj() );
231 path = Prj().AbsolutePath( path );
232
233 wxDirDialog dirDialog( this, _( "Select Output Directory" ), path );
234
235 if( dirDialog.ShowModal() == wxID_CANCEL )
236 return;
237
238 wxFileName dirName = wxFileName::DirName( dirDialog.GetPath() );
239
240 wxMessageDialog dialog( this, _( "Use a relative path?"), _( "Plot Output Directory" ),
241 wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
242
243 if( dialog.ShowModal() == wxID_YES )
244 {
245 wxString boardFilePath = ( (wxFileName) m_editFrame->GetBoard()->GetFileName() ).GetPath();
246
247 if( !dirName.MakeRelativeTo( boardFilePath ) )
248 {
249 wxMessageBox( _( "Cannot make path relative (target volume different from board "
250 "file volume)!" ),
251 _( "Plot Output Directory" ), wxOK | wxICON_ERROR );
252 }
253 }
254
255 m_outputDirectoryName->SetValue( dirName.GetFullPath() );
256}
257
258
259void DIALOG_GEN_FOOTPRINT_POSITION::OnGenerate( wxCommandEvent& event )
260{
261 if( !m_job )
262 {
263 m_units = m_radioBoxUnits->GetSelection() == 0 ? EDA_UNITS::INCHES : EDA_UNITS::MILLIMETRES;
264
266
267 wxString dirStr = m_outputDirectoryName->GetValue();
268 // Keep unix directory format convention in cfg files
269 dirStr.Replace( wxT( "\\" ), wxT( "/" ) );
270
272 cfg->m_PlaceFile.output_directory = dirStr;
273 cfg->m_PlaceFile.units = m_units == EDA_UNITS::INCHES ? 0 : 1;
274 cfg->m_PlaceFile.file_options = m_radioBoxFilesCount->GetSelection();
275 cfg->m_PlaceFile.file_format = m_rbFormat->GetSelection();
277 cfg->m_PlaceFile.exclude_TH = m_excludeTH->GetValue();
278 cfg->m_PlaceFile.only_SMD = m_onlySMD->GetValue();
280 cfg->m_PlaceFile.negate_xcoord = m_negateXcb->GetValue();
281
282 if( m_rbFormat->GetSelection() == 2 )
284 else
286 }
287 else
288 {
290 m_job->m_units = m_radioBoxUnits->GetSelection() == 0
293 m_job->m_format = static_cast<JOB_EXPORT_PCB_POS::FORMAT>( m_rbFormat->GetSelection() );
296 m_job->m_smdOnly = m_onlySMD->GetValue();
298 m_job->m_negateBottomX = m_negateXcb->GetValue();
299 m_job->m_excludeDNP = m_excludeDNP->GetValue();
300
301 Close();
302 }
303}
304
305
307{
308 BOARD* brd = m_editFrame->GetBoard();
309 wxString msg;
310 int fullcount = 0;
311
312 // Create output directory if it does not exist (also transform it in absolute form).
313 // Bail if it fails.
314
315 std::function<bool( wxString* )> textResolver =
316 [&]( wxString* token ) -> bool
317 {
318 // Handles board->GetTitleBlock() *and* board->GetProject()
319 return m_editFrame->GetBoard()->ResolveTextVar( token, 0 );
320 };
321
323 path = ExpandTextVars( path, &textResolver );
324 path = ExpandEnvVarSubstitutions( path, nullptr );
325
326 wxFileName outputDir = wxFileName::DirName( path );
327 wxString boardFilename = m_editFrame->GetBoard()->GetFileName();
328
330
331 if( !EnsureFileDirectoryExists( &outputDir, boardFilename, m_reporter ) )
332 {
333 msg.Printf( _( "Could not write plot files to folder '%s'." ), outputDir.GetPath() );
334 DisplayError( this, msg );
335 return false;
336 }
337
338 wxFileName fn = m_editFrame->GetBoard()->GetFileName();
339 fn.SetPath( outputDir.GetPath() );
340
341 // Create the Front and Top side placement files. Gerber P&P files are always separated.
342 // Not also they include all footprints
343 PLACEFILE_GERBER_WRITER exporter( brd );
344 wxString filename = exporter.GetPlaceFileName( fn.GetFullPath(), F_Cu );
345
346 int fpcount = exporter.CreatePlaceFile( filename, F_Cu, m_cbIncludeBoardEdge->GetValue() );
347
348 if( fpcount < 0 )
349 {
350 msg.Printf( _( "Failed to create file '%s'." ), fn.GetFullPath() );
351 wxMessageBox( msg );
353 return false;
354 }
355
356 msg.Printf( _( "Front (top side) placement file: '%s'." ), filename );
358
359 msg.Printf( _( "Component count: %d." ), fpcount );
361
362 // Create the Back or Bottom side placement file
363 fullcount = fpcount;
364
365 filename = exporter.GetPlaceFileName( fn.GetFullPath(), B_Cu );
366
367 fpcount = exporter.CreatePlaceFile( filename, B_Cu, m_cbIncludeBoardEdge->GetValue() );
368
369 if( fpcount < 0 )
370 {
371 msg.Printf( _( "Failed to create file '%s'." ), filename );
373 wxMessageBox( msg );
374 return false;
375 }
376
377 // Display results
378 msg.Printf( _( "Back (bottom side) placement file: '%s'." ), filename );
380
381 msg.Printf( _( "Component count: %d." ), fpcount );
383
384 fullcount += fpcount;
385 msg.Printf( _( "Full component count: %d." ), fullcount );
387
388 m_reporter->Report( _( "File generation successful." ), RPT_SEVERITY_INFO );
389
390 return true;
391}
392
393
395{
396 BOARD* brd = m_editFrame->GetBoard();
397 wxString msg;
398 bool singleFile = OneFileOnly();
399 bool useCSVfmt = m_rbFormat->GetSelection() == 1;
400 bool useAuxOrigin = m_useDrillPlaceOrigin->GetValue();
401 int fullcount = 0;
402 int topSide = true;
403 int bottomSide = true;
404 bool negateBottomX = m_negateXcb->GetValue();
405
406 // Test for any footprint candidate in list.
407 {
409 topSide, bottomSide, useCSVfmt, useAuxOrigin, negateBottomX );
410 exporter.GenPositionData();
411
412 if( exporter.GetFootprintCount() == 0 )
413 {
414 wxMessageBox( _( "No footprint for automated placement." ) );
415 return false;
416 }
417 }
418
419 // Create output directory if it does not exist (also transform it in absolute form).
420 // Bail if it fails.
421
422 std::function<bool( wxString* )> textResolver =
423 [&]( wxString* token ) -> bool
424 {
425 // Handles board->GetTitleBlock() *and* board->GetProject()
426 return m_editFrame->GetBoard()->ResolveTextVar( token, 0 );
427 };
428
430 path = ExpandTextVars( path, &textResolver );
431 path = ExpandEnvVarSubstitutions( path, nullptr );
432
433 wxFileName outputDir = wxFileName::DirName( path );
434 wxString boardFilename = m_editFrame->GetBoard()->GetFileName();
435
437
438 if( !EnsureFileDirectoryExists( &outputDir, boardFilename, m_reporter ) )
439 {
440 msg.Printf( _( "Could not write plot files to folder '%s'." ), outputDir.GetPath() );
441 DisplayError( this, msg );
442 return false;
443 }
444
445 wxFileName fn = m_editFrame->GetBoard()->GetFileName();
446 fn.SetPath( outputDir.GetPath() );
447
448 // Create the Front or Top side placement file, or a single file
449 topSide = true;
450 bottomSide = false;
451
452 if( singleFile )
453 {
454 bottomSide = true;
455 fn.SetName( fn.GetName() + wxT( "-" ) + wxT( "all" ) );
456 }
457 else
458 {
459 fn.SetName( fn.GetName() + wxT( "-" ) + PLACE_FILE_EXPORTER::GetFrontSideName().c_str() );
460 }
461
462
463 if( useCSVfmt )
464 {
465 fn.SetName( fn.GetName() + wxT( "-" ) + FILEEXT::FootprintPlaceFileExtension );
466 fn.SetExt( wxT( "csv" ) );
467 }
468 else
469 {
471 }
472
473 int fpcount = m_editFrame->DoGenFootprintsPositionFile( fn.GetFullPath(), UnitsMM(), OnlySMD(),
474 ExcludeAllTH(), ExcludeDNP(), topSide,
475 bottomSide, useCSVfmt, useAuxOrigin,
476 negateBottomX );
477 if( fpcount < 0 )
478 {
479 msg.Printf( _( "Failed to create file '%s'." ), fn.GetFullPath() );
480 wxMessageBox( msg );
482 return false;
483 }
484
485 if( singleFile )
486 msg.Printf( _( "Placement file: '%s'." ), fn.GetFullPath() );
487 else
488 msg.Printf( _( "Front (top side) placement file: '%s'." ), fn.GetFullPath() );
489
491
492 msg.Printf( _( "Component count: %d." ), fpcount );
494
495 if( singleFile )
496 {
497 m_reporter->Report( _( "File generation successful." ), RPT_SEVERITY_INFO );
498 return true;
499 }
500
501 // Create the Back or Bottom side placement file
502 fullcount = fpcount;
503 topSide = false;
504 bottomSide = true;
505 fn = brd->GetFileName();
506 fn.SetPath( outputDir.GetPath() );
507 fn.SetName( fn.GetName() + wxT( "-" ) + PLACE_FILE_EXPORTER::GetBackSideName().c_str() );
508
509 if( useCSVfmt )
510 {
511 fn.SetName( fn.GetName() + wxT( "-" ) + FILEEXT::FootprintPlaceFileExtension );
512 fn.SetExt( wxT( "csv" ) );
513 }
514 else
515 {
517 }
518
519 fpcount = m_editFrame->DoGenFootprintsPositionFile( fn.GetFullPath(), UnitsMM(), OnlySMD(),
520 ExcludeAllTH(), ExcludeDNP(), topSide,
521 bottomSide, useCSVfmt,
522 useAuxOrigin, negateBottomX );
523
524 if( fpcount < 0 )
525 {
526 msg.Printf( _( "Failed to create file '%s'." ), fn.GetFullPath() );
528 wxMessageBox( msg );
529 return false;
530 }
531
532 // Display results
533 if( !singleFile )
534 {
535 msg.Printf( _( "Back (bottom side) placement file: '%s'." ), fn.GetFullPath() );
537
538 msg.Printf( _( "Component count: %d." ), fpcount );
540 }
541
542 if( !singleFile )
543 {
544 fullcount += fpcount;
545 msg.Printf( _( "Full component count: %d." ), fullcount );
547 }
548
549 m_reporter->Report( _( "File generation successful." ), RPT_SEVERITY_INFO );
550 return true;
551}
552
553
555{
556 DIALOG_GEN_FOOTPRINT_POSITION dlg( getEditFrame<PCB_EDIT_FRAME>() );
557 dlg.ShowModal();
558 return 0;
559}
560
561
562int PCB_EDIT_FRAME::DoGenFootprintsPositionFile( const wxString& aFullFileName, bool aUnitsMM,
563 bool aOnlySMD, bool aNoTHItems, bool aExcludeDNP,
564 bool aTopSide, bool aBottomSide, bool aFormatCSV,
565 bool aUseAuxOrigin, bool aNegateBottomX )
566{
567 FILE * file = nullptr;
568
569 if( !aFullFileName.IsEmpty() )
570 {
571 file = wxFopen( aFullFileName, wxT( "wt" ) );
572
573 if( file == nullptr )
574 return -1;
575 }
576
577 std::string data;
578 PLACE_FILE_EXPORTER exporter( GetBoard(), aUnitsMM, aOnlySMD, aNoTHItems, aExcludeDNP, aTopSide,
579 aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX );
580 data = exporter.GenPositionData();
581
582 // if aFullFileName is empty, the file is not created, only the
583 // count of footprints to place is returned
584 if( file )
585 {
586 // Creates a footprint position file
587 // aSide = 0 -> Back (bottom) side)
588 // aSide = 1 -> Front (top) side)
589 // aSide = 2 -> both sides
590 fputs( data.c_str(), file );
591 fclose( file );
592 }
593
594 return exporter.GetFootprintCount();
595}
596
597
598void PCB_EDIT_FRAME::GenFootprintsReport( wxCommandEvent& event )
599{
600 wxFileName fn;
601
602 wxString boardFilePath = ( (wxFileName) GetBoard()->GetFileName() ).GetPath();
603 wxDirDialog dirDialog( this, _( "Select Output Directory" ), boardFilePath );
604
605 if( dirDialog.ShowModal() == wxID_CANCEL )
606 return;
607
608 fn = GetBoard()->GetFileName();
609 fn.SetPath( dirDialog.GetPath() );
610 fn.SetExt( wxT( "rpt" ) );
611
612 bool unitMM = GetUserUnits() == EDA_UNITS::MILLIMETRES;
613 bool success = DoGenFootprintsReport( fn.GetFullPath(), unitMM );
614
615 wxString msg;
616
617 if( success )
618 {
619 msg.Printf( _( "Footprint report file created:\n'%s'." ), fn.GetFullPath() );
620 wxMessageBox( msg, _( "Footprint Report" ), wxICON_INFORMATION );
621 }
622 else
623 {
624 msg.Printf( _( "Failed to create file '%s'." ), fn.GetFullPath() );
625 DisplayError( this, msg );
626 }
627}
628
629
630bool PCB_EDIT_FRAME::DoGenFootprintsReport( const wxString& aFullFilename, bool aUnitsMM )
631{
632 FILE* rptfile = wxFopen( aFullFilename, wxT( "wt" ) );
633
634 if( rptfile == nullptr )
635 return false;
636
637 std::string data;
638 PLACE_FILE_EXPORTER exporter( GetBoard(), aUnitsMM,
639 false, false, // SMD aOnlySMD, aNoTHItems
640 false, // aExcludeDNP
641 true, true, // aTopSide, aBottomSide
642 false, true, false // aFormatCSV, aUseAuxOrigin, aNegateBottomX
643 );
644 data = exporter.GenReportData();
645
646 fputs( data.c_str(), rptfile );
647 fclose( rptfile );
648
649 return true;
650}
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
Definition: bitmap.cpp:110
int GeneratePosFile(const TOOL_EVENT &aEvent)
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:290
bool ResolveTextVar(wxString *token, int aDepth) const
Definition: board.cpp:433
const wxString & GetFileName() const
Definition: board.h:327
Class DIALOG_GEN_FOOTPRINT_POSITION_BASE.
The dialog to create footprint position files and choose options (one or 2 files, units and force all...
void onUpdateUIincludeBoardEdge(wxUpdateUIEvent &event) override
void onUpdateUIExcludeTH(wxUpdateUIEvent &event) override
bool CreateGerberFiles()
Creates placement files in gerber format.
void onUpdateUIFileOpt(wxUpdateUIEvent &event) override
void onUpdateUIOnlySMD(wxUpdateUIEvent &event) override
DIALOG_GEN_FOOTPRINT_POSITION(PCB_EDIT_FRAME *aEditFrame)
bool CreateAsciiFiles()
Creates files in text or csv format.
void onUpdateUInegXcoord(wxUpdateUIEvent &event) override
void OnGenerate(wxCommandEvent &event) override
void OnOutputDirectoryBrowseClicked(wxCommandEvent &event) override
void onUpdateUIUnits(wxUpdateUIEvent &event) override
EDA_UNITS m_units
Definition: dialog_shim.h:212
void SetupStandardButtons(std::map< int, wxString > aLabels={})
int ShowModal() override
void SetOutputPath(const wxString &aPath)
Definition: job.cpp:129
wxString GetOutputPath() const
Definition: job.h:119
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
DIALOG_PLACE_FILE m_PlaceFile
PCBNEW_SETTINGS * GetPcbNewSettings() const
BOARD * GetBoard() const
The main frame for Pcbnew.
int DoGenFootprintsPositionFile(const wxString &aFullFileName, bool aUnitsMM, bool aOnlySMD, bool aNoTHItems, bool aExcludeDNP, bool aTopSide, bool aBottomSide, bool aFormatCSV, bool aUseAuxOrigin, bool aNegateBottomX)
Create an ASCII footprint position file.
void GenFootprintsReport(wxCommandEvent &event)
Call DoGenFootprintsReport to create a footprint report file.
bool DoGenFootprintsReport(const wxString &aFullFilename, bool aUnitsMM)
Create an ASCII footprint report file giving some infos on footprints and board outlines.
Used to create Gerber drill files.
const wxString GetPlaceFileName(const wxString &aFullBaseFilename, PCB_LAYER_ID aLayer) const
int CreatePlaceFile(const wxString &aFullFilename, PCB_LAYER_ID aLayer, bool aIncludeBrdEdges)
Create an pnp gerber file.
The ASCII format of the kicad place file is:
static std::string GetFrontSideName()
std::string GenPositionData()
build a string filled with the position data
static std::string GetBackSideName()
std::string GenReportData()
build a string filled with the pad report data This report does not used options aForceSmdItems,...
The backing store for a PROJECT, in JSON format.
Definition: project_file.h:72
wxString m_PcbLastPath[LAST_PATH_SIZE]
MRU path storage.
Definition: project_file.h:162
virtual PROJECT_FILE & GetProjectFile() const
Definition: project.h:200
virtual const wxString AbsolutePath(const wxString &aFileName) const
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
Definition: project.cpp:359
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
void SetBitmap(const wxBitmapBundle &aBmp)
Generic, UI-independent tool event.
Definition: tool_event.h:167
void MsgPanelSetMinSize(const wxSize &aMinSize)
returns the reporter object that reports to this panel
void SetFileName(const wxString &aReportFileName)
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
Definition: common.cpp:348
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject, int aFlags)
Definition: common.cpp:59
bool EnsureFileDirectoryExists(wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter)
Make aTargetFullFileName absolute and create the path of this file if it doesn't yet exist.
Definition: common.cpp:369
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
Definition: confirm.cpp:170
This file is part of the common library.
#define _(s)
Classes used in place file generation.
static const std::string FootprintPlaceFileExtension
@ B_Cu
Definition: layer_ids.h:65
@ F_Cu
Definition: layer_ids.h:64
int GetUserUnits()
Return the currently selected user unit value for the interface.
@ LAST_PATH_POS_FILES
Definition: project_file.h:56
@ RPT_SEVERITY_ERROR
@ RPT_SEVERITY_INFO
Definition of file extensions used in Kicad.