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;
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 ) );
}