From 03edf1fe528dfee8600d9896572ebfec1913abc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Sun, 26 Jan 2025 15:53:04 +0100 Subject: [PATCH] Do not add nets in GUI preview to make everything faster --- kikit/actionPlugins/panelize.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kikit/actionPlugins/panelize.py b/kikit/actionPlugins/panelize.py index e9c9cfb5..6e857f1d 100644 --- a/kikit/actionPlugins/panelize.py +++ b/kikit/actionPlugins/panelize.py @@ -52,6 +52,10 @@ def presetDifferential(source, target): def transplateBoard(source, target, update=lambda x: None): CLEAR_MSG = "Clearing the old board in UI" RENDER_MSG = "Rendering the new board in UI" + + target.ClearProject() + target.DeleteAllFootprints() + items = chain( list(target.GetDrawings()), list(target.GetFootprints()), @@ -88,10 +92,6 @@ def transplateBoard(source, target, update=lambda x: None): update(RENDER_MSG) appendItem(target, x) - for n in [n for _, n in source.GetNetInfo().NetsByNetcode().items()]: - update(RENDER_MSG) - target.Add(n) - update(RENDER_MSG) d = target.GetDesignSettings() d.CloneFrom(source.GetDesignSettings())