← Back to team overview

kicad-developers team mailing list archive

Re: Via Stitching

 

Hi

And I really practice. I made improvement and forgot to copy all. So
improvement is in these two patches. I hope this suggestion is accepted as
a new feature.

Heikki

On Tue, Sep 27, 2016 at 2:31 PM, Heikki Pulkkinen <hei6mail@xxxxxxxxx>
wrote:

> Hi,
>
> As in  practice, I made a patch file of my changes Not only diifs. It is
> SHIFT-ALT-V hotkey whitch make buried and blind vias, as it is in routing
> too.
>
>
> Heikki
>
> On Sun, Sep 25, 2016 at 2:25 PM, Heikki Pulkkinen <hei6mail@xxxxxxxxx>
> wrote:
>
>> Hi,
>>
>> I made some improvements to my patch of via stitching. Now you can just
>> point copper pour place and press V, it make trough via. If you press
>> SHIFT+CTRL+V it make buried or blind via.It does not change working layer.
>> Only when you place buried or blind via from different layer than it's
>> layer pair is. I think that it is quite easy to shoot board full of copper
>> pours connecting vias. It is possible to remove connecting tracks from old
>> designs. Just delete connection from pad and use clenup. Only have to
>> remember that if there are not at least two copper pours in same netcode in
>> different layers via is deleted too. Any support?
>>
>>
>> Heikki
>>
>> On Sat, Sep 24, 2016 at 3:06 PM, Heikki Pulkkinen <hei6mail@xxxxxxxxx>
>> wrote:
>>
>>> Hi everybody,
>>>
>>> This is my suggestion to via stitching without any tracks. It connects
>>> unconnected vias in different copper pours witch has same netcode. Adding
>>> vias is normal routing process without routing tracks. Start - Change Layer
>>> - End. Tool that do those things automatically would be good, so you can
>>> add all vias in same layer. After adding vias, run "Fill or Refill All
>>> Zones" that "Clenup tracks and vias" do not remove partly connected vias.
>>>
>>>
>>> Heikki
>>>
>>
>>
>
From f164beabe8ebfbe2395afcc294de3835dc1f5e1c Mon Sep 17 00:00:00 2001
From: heikki <hei6mail@xxxxxxxxx>
Date: Tue, 27 Sep 2016 18:22:46 +0300
Subject: [PATCH 2/3] Via stitching improvement
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.7.4"

This is a multi-part message in MIME format.
--------------2.7.4
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
 pcbnew/hotkeys_board_editor.cpp | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)


--------------2.7.4
Content-Type: text/x-patch; name="0002-Via-stitching-improvement.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0002-Via-stitching-improvement.patch"

diff --git a/pcbnew/hotkeys_board_editor.cpp b/pcbnew/hotkeys_board_editor.cpp
index 71c3944..b131778 100644
--- a/pcbnew/hotkeys_board_editor.cpp
+++ b/pcbnew/hotkeys_board_editor.cpp
@@ -375,9 +375,19 @@ bool PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
             //Add via with stitching
             if( GetToolId() == ID_TRACK_BUTT )
             {
-                TRACK* track = Begin_Route( NULL, aDC );
-                Other_Layer_Route( track, aDC );
-                End_Route( track, aDC );
+                if( track )
+                {
+                    if( track->GetNetCode() )
+                    {
+                        Other_Layer_Route( track, aDC );
+                        End_Route( track, aDC );
+                    }
+                    else
+                    {
+                        End_Route( track, aDC );
+                        Other_Layer_Route( NULL, aDC );
+                    }
+                }
             }
             
             Other_Layer_Route( NULL, aDC );

--------------2.7.4--


From 85e5701c4520cffc0ca2b7a3e1334abf58257fe4 Mon Sep 17 00:00:00 2001
From: heikki <hei6mail@xxxxxxxxx>
Date: Tue, 27 Sep 2016 18:29:27 +0300
Subject: [PATCH 3/3] Via stitching improvement error fix
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------2.7.4"

This is a multi-part message in MIME format.
--------------2.7.4
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit

---
 pcbnew/hotkeys_board_editor.cpp | 1 +
 1 file changed, 1 insertion(+)


--------------2.7.4
Content-Type: text/x-patch; name="0003-Via-stitching-improvement-error-fix.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0003-Via-stitching-improvement-error-fix.patch"

diff --git a/pcbnew/hotkeys_board_editor.cpp b/pcbnew/hotkeys_board_editor.cpp
index b131778..0b22df6 100644
--- a/pcbnew/hotkeys_board_editor.cpp
+++ b/pcbnew/hotkeys_board_editor.cpp
@@ -375,6 +375,7 @@ bool PCB_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosit
             //Add via with stitching
             if( GetToolId() == ID_TRACK_BUTT )
             {
+                TRACK* track = Begin_Route( NULL, aDC );
                 if( track )
                 {
                     if( track->GetNetCode() )

--------------2.7.4--



Follow ups

References