#include <pcb_edit_frame.h>
#include <confirm.h>
#include <gestfich.h>
#include <trigo.h>
#include <locale_io.h>
#include <macros.h>
#include <math/util.h>
#include <set>
#include <map>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <fp_shape.h>
#include <pcb_track.h>
#include <pad.h>
#include <zone.h>
#include <base_units.h>
#include <collectors.h>
#include <geometry/shape_poly_set.h>
#include <geometry/convex_hull.h>
#include <convert_basic_shapes_to_polygon.h>
#include <geometry/geometry_utils.h>
#include <pcbnew_settings.h>
#include <wx/log.h>
#include "specctra.h"
Go to the source code of this file.
|
namespace | DSN |
| This source file implements export and import capabilities to the specctra dsn file format.
|
|
◆ EXPORT_CUSTOM_PADS_CONVEX_HULL
#define EXPORT_CUSTOM_PADS_CONVEX_HULL |
◆ ExportBoardToSpecctraFile()
void ExportBoardToSpecctraFile |
( |
BOARD * |
aBoard, |
|
|
const wxString & |
aFullFilename |
|
) |
| |
Helper method to export board to DSN file.
- Parameters
-
aBoard | board object |
aFullFilename | specctra file name |
Definition at line 124 of file specctra_export.cpp.
125{
127
128 db.
SetPCB( SPECCTRA_DB::MakePCB() );
129
131
132
134 wxLogWarning(
_(
"Board outline is malformed. Run DRC for a full analysis." ) );
135
136
137
138
140
141 try
142 {
147
148
149
150 }
151 catch( ... )
152 {
154 throw;
155 }
156}
void SynchronizeNetsAndNetClasses()
Copy NETCLASS info to each NET, based on NET membership in a NETCLASS.
A DSN data tree, usually coming from a DSN file.
void ExportPCB(const wxString &aFilename, bool aNameChange=false)
Write the internal PCB instance out as a SPECTRA DSN format file.
void FlipFOOTPRINTs(BOARD *aBoard)
Flip the footprints which are on the back side of the board to the front.
void SetPCB(PCB *aPcb)
Delete any existing PCB and replaces it with the given one.
bool BuiltBoardOutlines(BOARD *aBoard)
Build the board outlines and store it in m_brd_outlines.
void FromBOARD(BOARD *aBoard)
Add the entire BOARD to the PCB but does not write it out.
void RevertFOOTPRINTs(BOARD *aBoard)
Flip the footprints which were on the back side of the board back to the back.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
References _, DSN::SPECCTRA_DB::BuiltBoardOutlines(), DSN::SPECCTRA_DB::ExportPCB(), DSN::SPECCTRA_DB::FlipFOOTPRINTs(), DSN::SPECCTRA_DB::FromBOARD(), DSN::SPECCTRA_DB::RevertFOOTPRINTs(), DSN::SPECCTRA_DB::SetPCB(), and BOARD::SynchronizeNetsAndNetClasses().
Referenced by ExportSpecctraDSN(), and PCB_EDIT_FRAME::ExportSpecctraFile().
◆ safetyMargin
const double safetyMargin = 0.1 |
|
static |