LTspice import: hide pin names with None justification, hide pin numbers

This commit is contained in:
Alex Shvartzkop 2023-07-11 12:57:56 +05:00
parent a38875d6dd
commit e80e4ff410
1 changed files with 5 additions and 0 deletions

View File

@ -316,6 +316,8 @@ void LTSPICE_SCH_PARSER::CreateSymbol( LTSPICE_SCHEMATIC::LT_SYMBOL& aLtSymbol,
CreatePin( aLtSymbol, j, pin );
aLibSymbol->AddDrawItem( pin );
}
aLibSymbol->SetShowPinNumbers( false );
}
@ -1217,6 +1219,9 @@ void LTSPICE_SCH_PARSER::CreatePin( LTSPICE_SCHEMATIC::LT_SYMBOL& aLTSymbol, int
else
{
aPin->SetName( lt_pin.PinAttribute[ wxS( "PinName" ) ] );
if( lt_pin.PinJustification == LTSPICE_SCHEMATIC::JUSTIFICATION::NONE )
aPin->SetNameTextSize( 0 );
}
aPin->SetNumber( wxString::Format( wxS( "%d" ), aIndex + 1 ) );