Comment 3 for bug 1711541

Revision history for this message
Tomasz Wlostowski (twlostow) wrote : Re: PNS router length tuning - not check length pad in die

Hi Andrey,

Please do not put any Kicad-specific code in any router file except pns_kicad_iface.[cpp,h] or length_tuner_tool.[cpp,h]

m_startItemLenToDie = 0;
if( m_startItem )
{
    TRACK *track = dyn_cast<TRACK*>( m_startItem->Parent() );
    if( track )
    {
        m_startItemLenToDie = track->GetLengthPadToDie();
    }
}

The pad to die length is a pad's attribute and hence can be a property of PNS_SOLID. Remember to add synchronization of this property in PNS_KICAD_IFACE::syncWorld()

Tom