altium pcbs: import pad to die length and delay
This commit is contained in:
committed by
Seth Hillbrand
parent
4f3fb892b3
commit
ad07c85cea
@@ -787,6 +787,9 @@ APAD6::APAD6( ALTIUM_BINARY_PARSER& aReader )
|
||||
soldermaskexpansionmode = static_cast<ALTIUM_MODE>( aReader.Read<uint8_t>() );
|
||||
aReader.Skip( 3 ); // to 106
|
||||
|
||||
pad_to_die_length = 0;
|
||||
pad_to_die_delay = 0;
|
||||
|
||||
if( subrecord5 == 110 )
|
||||
{
|
||||
// Don't know exactly what this is, but it's always been 0 in the files with
|
||||
@@ -820,6 +823,14 @@ APAD6::APAD6( ALTIUM_BINARY_PARSER& aReader )
|
||||
{
|
||||
}
|
||||
|
||||
if( subrecord5 >= 202 )
|
||||
{
|
||||
aReader.Skip( 40 );
|
||||
pad_to_die_length = aReader.ReadKicadUnit();
|
||||
aReader.Skip( 32 );
|
||||
pad_to_die_delay = KiROUND( aReader.Read<double>() * 1e18 );
|
||||
}
|
||||
|
||||
aReader.SkipSubrecord();
|
||||
|
||||
// Subrecord 6
|
||||
|
||||
@@ -687,6 +687,9 @@ struct APAD6
|
||||
ALTIUM_LAYER tolayer;
|
||||
ALTIUM_LAYER fromlayer;
|
||||
|
||||
int32_t pad_to_die_length;
|
||||
int32_t pad_to_die_delay;
|
||||
|
||||
std::unique_ptr<APAD6_SIZE_AND_SHAPE> sizeAndShape;
|
||||
|
||||
explicit APAD6( ALTIUM_BINARY_PARSER& aReader );
|
||||
|
||||
@@ -3618,6 +3618,9 @@ void ALTIUM_PCB::ConvertPads6ToFootprintItemOnCopper( FOOTPRINT* aFootprint, con
|
||||
if( aElem.is_tent_bottom )
|
||||
pad->SetLayerSet( pad->GetLayerSet().reset( B_Mask ) );
|
||||
|
||||
pad->SetPadToDieLength( aElem.pad_to_die_length );
|
||||
pad->SetPadToDieDelay( aElem.pad_to_die_delay );
|
||||
|
||||
aFootprint->Add( pad.release(), ADD_MODE::APPEND );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user