Not allowed
Main switch must be the main switch , everything will need to be switched off - The Local main/sub main for the inverter is still needed .

It would be similar to taking the stove point from the top of the ELU and then saying that the stove has an isolator which is the main switch - I did say similar