altium schematic import: convert ports to hierarchical labels instead of global labels

This commit is contained in:
jean-pierre charras 2022-11-28 17:56:46 +01:00
parent 149ddf9ddb
commit ef6348606a
1 changed files with 2 additions and 2 deletions

View File

@ -2500,9 +2500,9 @@ void SCH_ALTIUM_PLUGIN::ParsePort( const ASCH_PORT& aElem )
SCH_LABEL_BASE* label; SCH_LABEL_BASE* label;
// TODO: detect correct label type depending on sheet settings, etc. // TODO: detect correct label type depending on sheet settings, etc.
#if 0 // Set to 1 to use SCH_HIERLABEL label, 0 to use SCH_GLOBALLABEL #if 1 // Set to 1 to use SCH_HIERLABEL label, 0 to use SCH_GLOBALLABEL
{ {
label = new SCH_HIERLABEL label, 0 to use ( position, aElem.Name ); label = new SCH_HIERLABEL( position, aElem.Name );
} }
#else #else
label = new SCH_GLOBALLABEL( position, aElem.Name ); label = new SCH_GLOBALLABEL( position, aElem.Name );