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
8a1fd493
Commit
8a1fd493
authored
Jul 01, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes in Gerber files, in file attribute for copper layers.
parent
dc38c502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
common_plotGERBER_functions.cpp
common/common_plotGERBER_functions.cpp
+1
-1
pcbplot.cpp
pcbnew/pcbplot.cpp
+5
-12
No files found.
common/common_plotGERBER_functions.cpp
View file @
8a1fd493
...
@@ -104,7 +104,7 @@ bool GERBER_PLOTTER::StartPlot()
...
@@ -104,7 +104,7 @@ bool GERBER_PLOTTER::StartPlot()
m_gerberUnitInch
?
"inch"
:
"mm"
);
m_gerberUnitInch
?
"inch"
:
"mm"
);
wxString
Title
=
creator
+
wxT
(
" "
)
+
GetBuildVersion
();
wxString
Title
=
creator
+
wxT
(
" "
)
+
GetBuildVersion
();
fprintf
(
outputFile
,
"G04
(created by
%s) date %s*
\n
"
,
fprintf
(
outputFile
,
"G04
Created by KiCad (
%s) date %s*
\n
"
,
TO_UTF8
(
Title
),
TO_UTF8
(
DateAndTime
()
)
);
TO_UTF8
(
Title
),
TO_UTF8
(
DateAndTime
()
)
);
/* Mass parameter: unit = INCHES/MM */
/* Mass parameter: unit = INCHES/MM */
...
...
pcbnew/pcbplot.cpp
View file @
8a1fd493
...
@@ -135,29 +135,22 @@ wxString GetGerberFileFunction( const BOARD *aBoard, LAYER_NUM aLayer )
...
@@ -135,29 +135,22 @@ wxString GetGerberFileFunction( const BOARD *aBoard, LAYER_NUM aLayer )
break
;
break
;
case
Eco1_User
:
case
Eco1_User
:
case
Eco2_User
:
attrib
=
wxString
(
wxT
(
"Other,ECO1"
)
);
attrib
=
wxString
::
Format
(
wxT
(
"Other,ECO%d"
),
aLayer
-
Eco1_User
+
1
);
break
;
break
;
case
F_Cu
:
case
Eco2_User
:
attrib
=
wxString
(
wxT
(
"
Copper,L1
"
)
);
attrib
=
wxString
(
wxT
(
"
Other,ECO2
"
)
);
break
;
break
;
case
B_Cu
:
case
B_Cu
:
attrib
=
wxString
::
Format
(
wxT
(
"Copper,L%d"
),
aBoard
->
GetCopperLayerCount
()
);
attrib
=
wxString
::
Format
(
wxT
(
"Copper,L%d"
),
aBoard
->
GetCopperLayerCount
()
);
break
;
break
;
case
F_Cu
:
default:
default:
if
(
IsCopperLayer
(
aLayer
)
)
if
(
IsCopperLayer
(
aLayer
)
)
{
{
#if 0 // was:
attrib
=
wxString
::
Format
(
wxT
(
"Copper,L%d"
),
aLayer
+
1
);
// LAYER_N_2 is the first inner layer counting from the bottom; this
// must be converted to a 1-based number starting from the top
attrib = wxString::Format( wxT( "Copper,L%d" ),
aBoard->GetCopperLayerCount() - ( aLayer - LAYER_N_2 + 1 ) );
#else
attrib
=
wxString
::
Format
(
wxT
(
"Copper,L%d"
),
aLayer
);
#endif
}
}
break
;
break
;
}
}
...
...
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