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
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; >Parent( ) );
m_startItemLen ToDie = track-> GetLengthPadToD ie();
if( m_startItem )
{
TRACK *track = dyn_cast<TRACK*>( m_startItem-
if( track )
{
}
}
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