diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 7cb9caaf5e..e9ea03e0d9 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -1186,6 +1186,7 @@ void SCH_SYMBOL::GetContextualTextVars( wxArrayString* aVars ) const aVars->push_back( wxT( "SYMBOL_KEYWORDS" ) ); aVars->push_back( wxT( "EXCLUDE_FROM_BOM" ) ); aVars->push_back( wxT( "EXCLUDE_FROM_BOARD" ) ); + aVars->push_back( wxT( "EXCLUDE_FROM_SIM" ) ); aVars->push_back( wxT( "DNP" ) ); } @@ -1328,6 +1329,12 @@ bool SCH_SYMBOL::ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token, i : wxString( wxT( "" ) ); return true; } + else if( token->IsSameAs( wxT( "EXCLUDE_FROM_SIM" ) ) ) + { + *token = this->GetExcludeFromSim() ? _( "Excluded from simulation" ) + : wxString( wxT( "" ) ); + return true; + } else if( token->IsSameAs( wxT( "DNP" ) ) ) { *token = this->GetDNP() ? _( "DNP" ) : wxString( wxT( "" ) ); diff --git a/eeschema/sch_symbol.h b/eeschema/sch_symbol.h index 074af17f90..d4598060f1 100644 --- a/eeschema/sch_symbol.h +++ b/eeschema/sch_symbol.h @@ -458,7 +458,7 @@ public: * * @param aFieldName is the name of the field to find. * @param aIncludeDefaultFields searches the library symbol default fields if true. - * @param aCaseInsensitive ignore the filed name case if true. + * @param aCaseInsensitive ignore the filed name case if true. * * @return the field if found or NULL if the field was not found. */