Trying to program the same functionality as you see in the "alt+1" and "spacebar" shortcuts into a callback function that will run when you open a model. The best I have found is the Simulink.scrollToVisible function but that doesn't seem to always zoom to 100% and center the models.
MATLAB: Zoom and center Simulink model program (alt+1 & spacebar)
block modelcommandsimulink
Best Answer