I would like to change default_nettype in my RTL design without explicitly modifying the respective compiler directive within each file.
default_nettype
Is there a way to override it in ModelSim software?
The answer to your question is no.