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
60171f7a
Commit
60171f7a
authored
Feb 09, 2010
by
viknn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added datasheet field in to the BOM file (KICAD_GOST)
parent
3066c705
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
build_BOM.cpp
eeschema/build_BOM.cpp
+17
-0
class_schematic_items.cpp
eeschema/class_schematic_items.cpp
+1
-1
No files found.
eeschema/build_BOM.cpp
View file @
60171f7a
...
@@ -587,7 +587,11 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
...
@@ -587,7 +587,11 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
};
};
// Print comment line:
// Print comment line:
#if defined(KICAD_GOST)
fprintf
(
f
,
"ref%cvalue%cdatasheet"
,
s_ExportSeparatorSymbol
,
s_ExportSeparatorSymbol
);
#else
fprintf
(
f
,
"ref%cvalue"
,
s_ExportSeparatorSymbol
);
fprintf
(
f
,
"ref%cvalue"
,
s_ExportSeparatorSymbol
);
#endif
if
(
aIncludeSubComponents
)
if
(
aIncludeSubComponents
)
{
{
...
@@ -655,11 +659,24 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
...
@@ -655,11 +659,24 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
sprintf
(
CmpName
+
strlen
(
CmpName
),
"%c"
,
Unit
);
sprintf
(
CmpName
+
strlen
(
CmpName
),
"%c"
,
Unit
);
if
(
CompactForm
)
if
(
CompactForm
)
#if defined(KICAD_GOST)
fprintf
(
f
,
"%s%c%s%c%s"
,
CmpName
,
s_ExportSeparatorSymbol
,
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
),
s_ExportSeparatorSymbol
,
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
DATASHEET
)
->
m_Text
)
);
#else
fprintf
(
f
,
"%s%c%s"
,
CmpName
,
s_ExportSeparatorSymbol
,
fprintf
(
f
,
"%s%c%s"
,
CmpName
,
s_ExportSeparatorSymbol
,
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
)
);
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
)
);
#endif
else
else
#if defined(KICAD_GOST)
fprintf
(
f
,
"| %-10s %-12s %-20s"
,
CmpName
,
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
),
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
DATASHEET
)
->
m_Text
)
);
#else
fprintf
(
f
,
"| %-10s %-12s"
,
CmpName
,
fprintf
(
f
,
"| %-10s %-12s"
,
CmpName
,
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
)
);
CONV_TO_UTF8
(
DrawLibItem
->
GetField
(
VALUE
)
->
m_Text
)
);
#endif
if
(
aIncludeSubComponents
)
if
(
aIncludeSubComponents
)
{
{
...
...
eeschema/class_schematic_items.cpp
View file @
60171f7a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
* the actual pen size is default value * BUS_WIDTH_EXPAND
* the actual pen size is default value * BUS_WIDTH_EXPAND
*/
*/
#if defined(KICAD_GOST)
#if defined(KICAD_GOST)
#define BUS_WIDTH_EXPAND
2
#define BUS_WIDTH_EXPAND
3.6
#else
#else
#define BUS_WIDTH_EXPAND 1.4
#define BUS_WIDTH_EXPAND 1.4
#endif
#endif
...
...
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