Comment 10 for bug 1848488

Revision history for this message
Ian McInerney (imcinerney) wrote :

@Fabien,

Instead of trying to set the default value in the BOARD_CONNECTED_OBJECT class constructor, it would probably be better to just modify it after the module is added to the board. Note that this is how the ratsnest is updated when modules are exchanged (see PCB_EDIT_FRAME::Exchange_Module inside dialog_exchange_footprints.cpp).

I think something similar could be done for the newly added modules inside the BOARD_NETLIST_UPDATER::addNewComponent function, where there you could set the local ratsnest field using its setter to be the current settings value for the new modules only.

The ratsnest after routing will require a different patch, since that would be due to an issue in the router.

@Enrico, can you file a different issue for the router track ratsnest so we can track it separately from this one?