altium: update to new string replacement variables

This commit is contained in:
Thomas Pointhuber 2020-04-06 18:14:04 +02:00 committed by Wayne Stambaugh
parent 13eb4d73da
commit 05d070a0c9
1 changed files with 10 additions and 2 deletions

View File

@ -1818,9 +1818,17 @@ void ALTIUM_PCB::ParseTexts6Data(
itm = txm;
}
if( !elem.isDesignator && elem.text == ".Designator" )
if( elem.text == ".Designator" && !elem.isDesignator )
{
tx->SetText( "%R" );
tx->SetText( "${REFERENCE}" );
}
else if( elem.text == ".Comment" && !elem.isComment )
{
tx->SetText( "${VALUE}" );
}
else if( elem.text == ".Layer_Name" )
{
tx->SetText( "${LAYER}" );
}
else
{