mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
See if copying netclasses is responsible for KICAD-V6Z (and others).
This commit is contained in:
parent
8c85cd43f3
commit
a75fd2bb23
@ -56,6 +56,9 @@ public:
|
|||||||
|
|
||||||
~NETCLASS(){};
|
~NETCLASS(){};
|
||||||
|
|
||||||
|
NETCLASS( const NETCLASS& ) = delete;
|
||||||
|
NETCLASS& operator=( const NETCLASS& ) = delete;
|
||||||
|
|
||||||
bool operator==( const NETCLASS& other ) const;
|
bool operator==( const NETCLASS& other ) const;
|
||||||
|
|
||||||
wxString GetClass() const
|
wxString GetClass() const
|
||||||
|
@ -4051,15 +4051,13 @@ NETINFO_ITEM* CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet( const NET_ID& aCadstarNet
|
|||||||
netClassName += wxT( " | Spacing class: " ) + sp.Name;
|
netClassName += wxT( " | Spacing class: " ) + sp.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
netclass.reset( new NETCLASS( *netSettings->GetDefaultNetclass() ) );
|
netclass.reset( new NETCLASS( netClassName ) );
|
||||||
netclass->SetName( netClassName );
|
|
||||||
netSettings->SetNetclass( netClassName, netclass );
|
netSettings->SetNetclass( netClassName, netclass );
|
||||||
netclass->SetTrackWidth( getKiCadLength( rc.OptimalWidth ) );
|
netclass->SetTrackWidth( getKiCadLength( rc.OptimalWidth ) );
|
||||||
m_netClassMap.insert( { key, netclass } );
|
m_netClassMap.insert( { key, netclass } );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_board->GetDesignSettings().m_NetSettings->SetNetclassPatternAssignment(
|
m_board->GetDesignSettings().m_NetSettings->SetNetclassPatternAssignment( newName, netclass->GetName() );
|
||||||
newName, netclass->GetName() );
|
|
||||||
|
|
||||||
netInfo->SetNetClass( netclass );
|
netInfo->SetNetClass( netclass );
|
||||||
m_board->Add( netInfo, ADD_MODE::APPEND );
|
m_board->Add( netInfo, ADD_MODE::APPEND );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user