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
d58296c8
Commit
d58296c8
authored
Feb 07, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netless zone support fix to specctra export
parent
1d3f2d52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
CHANGELOG.txt
CHANGELOG.txt
+1
-0
specctra_export.cpp
pcbnew/specctra_export.cpp
+20
-0
No files found.
CHANGELOG.txt
View file @
d58296c8
...
...
@@ -19,6 +19,7 @@ email address.
================================================================================
++pcbnew
added "cutout" from a ZONE_CONTAINER capability to the SPECCTRA export.
added "netless zone" support to SPECCTRA export.
2009-Feb-6 Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
...
...
pcbnew/specctra_export.cpp
View file @
d58296c8
...
...
@@ -1026,6 +1026,8 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
//-----<zone containers become planes>--------------------------------
{
int
netlessZones
=
0
;
static
const
KICAD_T
scanZONEs
[]
=
{
TYPE_ZONE_CONTAINER
,
EOT
};
items
.
Collect
(
aBoard
,
scanZONEs
);
...
...
@@ -1041,6 +1043,24 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
plane
->
name
=
CONV_TO_UTF8
(
item
->
m_Netname
);
if
(
plane
->
name
.
size
()
==
0
)
{
char
name
[
32
];
// This is one of those no connection zones, netcode=0, and it has no name.
// Create a unique, bogus netname.
NET
*
no_net
=
new
NET
(
pcb
->
network
);
sprintf
(
name
,
"@:no_net_%d"
,
netlessZones
++
);
no_net
->
net_id
=
name
;
// add the bogus net name to network->nets.
pcb
->
network
->
nets
.
push_back
(
no_net
);
// use the bogus net name in the netless zone.
plane
->
name
=
no_net
->
net_id
;
}
mainPolygon
->
layer_id
=
layerIds
[
kicadLayer2pcb
[
item
->
GetLayer
()
]
];
int
count
=
item
->
m_Poly
->
corner
.
size
();
...
...
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