From d780cb7e7c1023193fbdf65bfe6e48ed0324691f Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Tue, 13 Oct 2020 23:35:09 +0100 Subject: [PATCH] CADSTAR PCB Archive Importer: Load CADSTAR routing areas as a KiCad rule area --- .../plugins/cadstar/cadstar_pcb_archive_loader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp index cd80b2140b..a79fd99bff 100644 --- a/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp +++ b/pcbnew/plugins/cadstar/cadstar_pcb_archive_loader.cpp @@ -992,7 +992,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadAreas() { AREA& area = areaPair.second; - if( area.NoVias || area.NoTracks || area.Keepout ) + if( area.NoVias || area.NoTracks || area.Keepout || area.Routing ) { ZONE_CONTAINER* zone = getZoneFromCadstarShape( area.Shape, getLineThickness( area.LineCodeID ), mBoard ); @@ -1015,18 +1015,18 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadAreas() zone->SetDoNotAllowVias( area.NoVias ); - if( area.Placement || area.Routing ) + if( area.Placement ) wxLogWarning( wxString::Format( - _( "The CADSTAR area '%s' is defined as a placement and/or routing area " - "in CADSTAR, in addition to Keepout. Placement or Routing areas are " - "not supported in KiCad. Only the supported elements were imported." ), + _( "The CADSTAR area '%s' is marked as a placement area in CADSTAR. " + "Placement areas are not supported in KiCad. Only the supported " + "elements for the area were imported." ), area.Name ) ); } else { wxLogError( wxString::Format( _( "The CADSTAR area '%s' does not have a KiCad equivalent. " - "Pure Placement or Routing areas are not supported." ), + "Pure Placement areas are not supported." ), area.Name ) ); }