CADSTAR PCB Archive Importer: Load CADSTAR routing areas as a KiCad rule area

This commit is contained in:
Roberto Fernandez Bautista 2020-10-13 23:35:09 +01:00 committed by Jon Evans
parent 5273c77fbf
commit d780cb7e7c
1 changed files with 6 additions and 6 deletions

View File

@ -992,7 +992,7 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadAreas()
{ {
AREA& area = areaPair.second; AREA& area = areaPair.second;
if( area.NoVias || area.NoTracks || area.Keepout ) if( area.NoVias || area.NoTracks || area.Keepout || area.Routing )
{ {
ZONE_CONTAINER* zone = getZoneFromCadstarShape( ZONE_CONTAINER* zone = getZoneFromCadstarShape(
area.Shape, getLineThickness( area.LineCodeID ), mBoard ); area.Shape, getLineThickness( area.LineCodeID ), mBoard );
@ -1015,18 +1015,18 @@ void CADSTAR_PCB_ARCHIVE_LOADER::loadAreas()
zone->SetDoNotAllowVias( area.NoVias ); zone->SetDoNotAllowVias( area.NoVias );
if( area.Placement || area.Routing ) if( area.Placement )
wxLogWarning( wxString::Format( wxLogWarning( wxString::Format(
_( "The CADSTAR area '%s' is defined as a placement and/or routing area " _( "The CADSTAR area '%s' is marked as a placement area in CADSTAR. "
"in CADSTAR, in addition to Keepout. Placement or Routing areas are " "Placement areas are not supported in KiCad. Only the supported "
"not supported in KiCad. Only the supported elements were imported." ), "elements for the area were imported." ),
area.Name ) ); area.Name ) );
} }
else else
{ {
wxLogError( wxLogError(
wxString::Format( _( "The CADSTAR area '%s' does not have a KiCad equivalent. " 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 ) ); area.Name ) );
} }