Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a3692751
Commit
a3692751
authored
Jan 10, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: solved: incorrect DCODE used to plot board edges and silkscreen
parent
0c0b2a40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+1
-0
plotgerb.cpp
pcbnew/plotgerb.cpp
+15
-11
No files found.
pcbnew/plot_rtn.cpp
View file @
a3692751
...
@@ -676,6 +676,7 @@ void PlotDrawSegment( DRAWSEGMENT* pt_segm, int Format, int masque_layer )
...
@@ -676,6 +676,7 @@ void PlotDrawSegment( DRAWSEGMENT* pt_segm, int Format, int masque_layer )
switch
(
Format
)
switch
(
Format
)
{
{
case
PLOT_FORMAT_GERBER
:
case
PLOT_FORMAT_GERBER
:
SelectD_CODE_For_LineDraw
(
thickness
);
if
(
pt_segm
->
m_Shape
==
S_CIRCLE
)
if
(
pt_segm
->
m_Shape
==
S_CIRCLE
)
PlotCircle
(
PLOT_FORMAT_GERBER
,
thickness
,
start
,
radius
);
PlotCircle
(
PLOT_FORMAT_GERBER
,
thickness
,
start
,
radius
);
else
if
(
pt_segm
->
m_Shape
==
S_ARC
)
else
if
(
pt_segm
->
m_Shape
==
S_ARC
)
...
...
pcbnew/plotgerb.cpp
View file @
a3692751
/****************************************/
/*********************************************************/
/**** Routine de trace GERBER RS274X ****/
/****Function to plot a board in GERBER RS274X format ****/
/****************************************/
/*********************************************************/
/* Creates the output files, one per board layer:
* filenames are like xxxc.PHO and use the RS274X format
* Units = inches
* format 3.4, Leading zero omitted, Abs format
* format 3.4 uses the native pcbnew units (1/10000 inch).
*/
#include "fctsys.h"
#include "fctsys.h"
...
@@ -10,8 +17,8 @@
...
@@ -10,8 +17,8 @@
#include "pcbplot.h"
#include "pcbplot.h"
#include "trigo.h"
#include "trigo.h"
/*
Structure de Description d'un D_CODE GERBER
: */
/*
Class to handle a D_CODE when plotting a board
: */
#define FIRST_DCODE_VALUE 10
#define FIRST_DCODE_VALUE 10
// D_CODE < 10 is a command, D_CODE >= 10 is a tool
class
D_CODE
class
D_CODE
{
{
...
@@ -75,8 +82,8 @@ void WinEDA_BasePcbFrame::Genere_GERBER( const wxString& FullFileName, int Layer
...
@@ -75,8 +82,8 @@ void WinEDA_BasePcbFrame::Genere_GERBER( const wxString& FullFileName, int Layer
if
(
Plot_Set_MIROIR
)
if
(
Plot_Set_MIROIR
)
g_PlotOrient
|=
PLOT_MIROIR
;
g_PlotOrient
|=
PLOT_MIROIR
;
/* Calcul
des echelles de conversion
*/
/* Calcul
ate scaling from pcbnew units (in 0.1 mil or 0.0001 inch) to gerber units
*/
Gerb_scale_plot
=
1.0
;
/*
pour unites gerber en 0,1 Mils, format 3.4
*/
Gerb_scale_plot
=
1.0
;
/*
for format 3.4 (4 digits for decimal format means 0.1 mil per gerber unit
*/
scale_x
=
Scale_X
*
Gerb_scale_plot
;
scale_x
=
Scale_X
*
Gerb_scale_plot
;
scale_y
=
Scale_Y
*
Gerb_scale_plot
;
scale_y
=
Scale_Y
*
Gerb_scale_plot
;
g_PlotOffset
.
x
=
0
;
g_PlotOffset
.
x
=
0
;
...
@@ -176,10 +183,7 @@ void WinEDA_BasePcbFrame::Plot_Layer_GERBER( FILE* File, int masque_layer,
...
@@ -176,10 +183,7 @@ void WinEDA_BasePcbFrame::Plot_Layer_GERBER( FILE* File, int masque_layer,
EDA_BaseStruct
*
PtStruct
;
EDA_BaseStruct
*
PtStruct
;
wxString
msg
;
wxString
msg
;
// (Following command has been superceded by new command on lines 93 and 94.)
/* Draw items type Drawings Pcb matching with masque_layer: */
// masque_layer |= EDGE_LAYER; /* Les elements de la couche EDGE sont tj traces */
/* Draw items type Drawings Pcb : */
PtStruct
=
m_Pcb
->
m_Drawings
;
PtStruct
=
m_Pcb
->
m_Drawings
;
for
(
;
PtStruct
!=
NULL
;
PtStruct
=
PtStruct
->
Next
()
)
for
(
;
PtStruct
!=
NULL
;
PtStruct
=
PtStruct
->
Next
()
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment