diff --git a/pcbnew/pcb_io/altium/altium_parser_pcb.h b/pcbnew/pcb_io/altium/altium_parser_pcb.h index dbc30fdd20..876d8c19f4 100644 --- a/pcbnew/pcb_io/altium/altium_parser_pcb.h +++ b/pcbnew/pcb_io/altium/altium_parser_pcb.h @@ -74,15 +74,16 @@ enum class ALTIUM_DIMENSION_KIND { UNKNOWN = 0, - LINEAR = 1, - ANGULAR = 2, - RADIAL = 3, - LEADER = 4, - DATUM = 5, - BASELINE = 6, - CENTER = 7, - LINEAR_DIAMETER = 8, - RADIAL_DIAMETER = 9 + LINEAR = 1, + ANGULAR = 2, + RADIAL = 3, + LEADER = 4, + DATUM = 5, + BASELINE = 6, + CENTER = 7, + UNKNOWN_2 = 8, + LINEAR_DIAMETER = 9, + RADIAL_DIAMETER = 10 }; enum class ALTIUM_REGION_KIND diff --git a/pcbnew/pcb_io/altium/altium_pcb.cpp b/pcbnew/pcb_io/altium/altium_pcb.cpp index b363602f5b..cf31246b24 100644 --- a/pcbnew/pcb_io/altium/altium_pcb.cpp +++ b/pcbnew/pcb_io/altium/altium_pcb.cpp @@ -1667,6 +1667,14 @@ void ALTIUM_PCB::ParseDimensions6Data( const ALTIUM_COMPOUND_FILE& aAltiumPc case ALTIUM_DIMENSION_KIND::LINEAR: HelperParseDimensions6Linear( elem ); break; + case ALTIUM_DIMENSION_KIND::ANGULAR: + if( m_reporter ) + { + m_reporter->Report( + wxString::Format( _( "Ignored Angular dimension (not yet supported)." ) ), + RPT_SEVERITY_INFO ); + } + break; case ALTIUM_DIMENSION_KIND::RADIAL: HelperParseDimensions6Radial( elem ); break; @@ -1676,21 +1684,45 @@ void ALTIUM_PCB::ParseDimensions6Data( const ALTIUM_COMPOUND_FILE& aAltiumPc case ALTIUM_DIMENSION_KIND::DATUM: if( m_reporter ) { - wxString msg; - msg.Printf( _( "Ignored dimension of kind %d (not yet supported)." ), elem.kind ); - m_reporter->Report( msg, RPT_SEVERITY_DEBUG ); + m_reporter->Report( + wxString::Format( _( "Ignored Datum dimension (not yet supported)." ) ), + RPT_SEVERITY_INFO ); } // HelperParseDimensions6Datum( elem ); break; + case ALTIUM_DIMENSION_KIND::BASELINE: + if( m_reporter ) + { + m_reporter->Report( + wxString::Format( _( "Ignored Baseline dimension (not yet supported)." ) ), + RPT_SEVERITY_INFO ); + } + break; case ALTIUM_DIMENSION_KIND::CENTER: HelperParseDimensions6Center( elem ); break; + case ALTIUM_DIMENSION_KIND::LINEAR_DIAMETER: + if( m_reporter ) + { + m_reporter->Report( + wxString::Format( _( "Ignored Linear dimension (not yet supported)." ) ), + RPT_SEVERITY_INFO ); + } + break; + case ALTIUM_DIMENSION_KIND::RADIAL_DIAMETER: + if( m_reporter ) + { + m_reporter->Report( + wxString::Format( _( "Ignored Radial dimension (not yet supported)." ) ), + RPT_SEVERITY_INFO ); + } + break; default: if( m_reporter ) { wxString msg; msg.Printf( _( "Ignored dimension of kind %d (not yet supported)." ), elem.kind ); - m_reporter->Report( msg, RPT_SEVERITY_DEBUG ); + m_reporter->Report( msg, RPT_SEVERITY_INFO ); } break; }