From e80e4ff41081ea4375e8e0eb8834d6ce4d41311b Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 11 Jul 2023 12:57:56 +0500 Subject: [PATCH] LTspice import: hide pin names with None justification, hide pin numbers --- eeschema/sch_plugins/ltspice/ltspice_sch_parser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eeschema/sch_plugins/ltspice/ltspice_sch_parser.cpp b/eeschema/sch_plugins/ltspice/ltspice_sch_parser.cpp index 453d09ad89..a4da89f26b 100644 --- a/eeschema/sch_plugins/ltspice/ltspice_sch_parser.cpp +++ b/eeschema/sch_plugins/ltspice/ltspice_sch_parser.cpp @@ -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 ) );