Dear Manuel,
SAM is not designed to model off-grid systems. We have not tried the workaround you suggest.
Rather than using the interconnection limit to try to force the system not to export to the grid, a better approach might be to design the PV array, inverter, and battery bank so that the system can meet the load without the grid. SAM might still use some small amount of grid power, but if you set the retail electricity rates to zero so that the cost (and value) of that power is not included in your financial analysis, that approach might get close to modeling an off-grid system.
I would be happy to take a look at your approach if you could attach your .sam file for me to review.
Best regards,
Paul.